View Single Post
  #4  
Old February 26th 09, 04:55 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default OpenMsgStore exception

First, MAPI questions have a better chnace of being answered in teh MAPI
newsgroup (programmer.messaging).
Secondly, your code must run under the identity of the domain Windows user
who wons teh primary mailbox in the profile. Otehrwise you will get an
authentication prompt.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"DamanPradhan via OfficeKB.com" u49522@uwe wrote in message
news:924a0c378d688@uwe...
Hi,

I just happened to come across this link which does pretty much what I
want :

http://www.tech-archive.net/Archive/...4-08/0057.html


Dmitry says :

"Open the global profile secition (pbGlobalProfileSectionGuid), and set
PR_PROFILE_CONFIG_FLAGS to CONFIG_SHOW_CONNECT_UI |
CONFIG_PROMPT_FOR_CREDENTIALS"

I'm a newbie to MAPI and could not pin point how to open the Global
Profile
Section mentioned here. Specifically, I found OpenProfileSection() in 3
namespaces :

MapiSession, MsgServiceAdmin and ProviderAdmin.

Which of these namespaces do i use ?

Also, in calls to OpenProfileSection(), there is a UID argument that has
to
be passed. Where do I get the UID from ? Also, can anyone please let me
know
whats the second argument in the following API ?

public MAPI33.Error MsgServiceAdmin.OpenProfileSection(System.Guid UID,
System.Guid Interface, __MAPI33__INTERNALS__.MsgServiceAdmin.FLAGS Flags,
out
MAPI33.IProfSect PrfSect)


Thanks in advance !
Daman

DamanPradhan wrote:
Just noticed that the username / password box pops up on a Windows Server
2003 machine and does not on a XP system. Is there some sort of a system
setting that needs to be changed somewhere ?

Regards,
Daman

Hi,

[quoted text clipped - 15 lines]

Thanks in advance !!!



--
Message posted via http://www.officekb.com



Ads