E
Eric
The way I understand it, from reading various posts by MVP's in this
newsgroup, I need to call MAPILogonEx() to get an IMAPISession pointer
in Outlook 2000. In 2002 I can just use the
Application.Session.MAPIOBJECT property, but I need my code to work in
OL2K also.
I keep getting the error "Param Incorrect" when I try and invoke this
line of code in the OnConnect event of my add-in:
MAPILogonEx(NULL,NULL,NULL,MAPI_ALLOW_OTHERS,0,&MapiSession);
I've tried with and without the MAPI_ALLOW_OTHERS flags, and also
tried changing other various things, but can't get anything to work.
I don't have a default profile setup, I have Outlook set to prompt,
could this be a problem since I'm not passing MAPI_LOGON_UI? I don't
want to display a login prompt, and I want to make sure I'm using the
same profile (and session) as Outlook.
Do I need to call MAPIInitialize() first? The way I understand it, I
shouldn't have to, since I'm running on the main thread.
newsgroup, I need to call MAPILogonEx() to get an IMAPISession pointer
in Outlook 2000. In 2002 I can just use the
Application.Session.MAPIOBJECT property, but I need my code to work in
OL2K also.
I keep getting the error "Param Incorrect" when I try and invoke this
line of code in the OnConnect event of my add-in:
MAPILogonEx(NULL,NULL,NULL,MAPI_ALLOW_OTHERS,0,&MapiSession);
I've tried with and without the MAPI_ALLOW_OTHERS flags, and also
tried changing other various things, but can't get anything to work.
I don't have a default profile setup, I have Outlook set to prompt,
could this be a problem since I'm not passing MAPI_LOGON_UI? I don't
want to display a login prompt, and I want to make sure I'm using the
same profile (and session) as Outlook.
Do I need to call MAPIInitialize() first? The way I understand it, I
shouldn't have to, since I'm running on the main thread.