Hi,
I am using
hr = MAPILogonEx(0, szProfile, NULL, MAPI_TIMEOUT_SHORT |
MAPI_EXPLICIT_PROFILE, &lpSess);
to connect to the MAPI. When I specify wrong profile ( which is not
having enough permissions ) it should simply fail. But in my case a
pop-up is being shown. ( i am not using MAPI_LOGON_UI ) Any idea how
can I get rid of this popup?
Regards,
Shivaraj
Dave Goldman [MSFT] - 25 Apr 2007 14:49 GMT
You could set some flags checking the hresult for Access Deined and have it bail out.

Signature
This posting is provided "AS IS" with no warranties, and confers no rights.
Dgoldman
http://blogs.msdn.com/dgoldman
Download OABInteg (http://gotdotnet.com/Community/UserSamples/Download.aspx?SampleGuid=A2338E73-F52
1-4071-9B1D-AAF49C346ACD)
Hi,
I am using
hr = MAPILogonEx(0, szProfile, NULL, MAPI_TIMEOUT_SHORT | MAPI_EXPLICIT_PROFILE, &lpSess);
to connect to the MAPI. When I specify wrong profile ( which is not
having enough permissions ) it should simply fail. But in my case a
pop-up is being shown. ( i am not using MAPI_LOGON_UI ) Any idea how
can I get rid of this popup?
Regards,
Shivaraj