M
Mark Cote
I'm using the MAPILogonComplete event in an Outlook add-in (written in
C++) to tell when we have access to all the MAPI data. We launch
Outlook in the background when our main application starts so that the
user doesn't have to, assuming that the user has a default profile
set. However, unless I have a call to
Outlook::_NameSpace::get_CurrentUser() in OnStartupComplete(), the
MAPILoginComplete event never fires. A call to MAPILogonEx() doesn't
work here; the only thing that seems to work is the get_CurrentUser()
call. It is as though, when Outlook is in the background with a
default user, it doesn't log into MAPI until the add-in asks who the
current user is, which somehow triggers the MAPI logon to determine
the current user. This is very strange, and I have the feeling that
this call is working here only because I am omitting some other
necessary call. Any ideas?
Related to this, is MAPILogonEx() absolutely necessary in an add-in?
If so, where is the best place to put it? OnStartupComplete()?
Thanks,
Mark
C++) to tell when we have access to all the MAPI data. We launch
Outlook in the background when our main application starts so that the
user doesn't have to, assuming that the user has a default profile
set. However, unless I have a call to
Outlook::_NameSpace::get_CurrentUser() in OnStartupComplete(), the
MAPILoginComplete event never fires. A call to MAPILogonEx() doesn't
work here; the only thing that seems to work is the get_CurrentUser()
call. It is as though, when Outlook is in the background with a
default user, it doesn't log into MAPI until the add-in asks who the
current user is, which somehow triggers the MAPI logon to determine
the current user. This is very strange, and I have the feeling that
this call is working here only because I am omitting some other
necessary call. Any ideas?
Related to this, is MAPILogonEx() absolutely necessary in an add-in?
If so, where is the best place to put it? OnStartupComplete()?
Thanks,
Mark