Discussion:
how to get rid of pop-up in MAPILogonEx
(too old to reply)
shivaraj
2007-04-25 06:36:45 UTC
Permalink
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]
2007-04-25 13:49:06 UTC
Permalink
You could set some flags checking the hresult for Access Deined and have it bail out.
--
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-F521-4071-9B1D-AAF49C346ACD)
"shivaraj" <***@gmail.com> wrote in message news:***@r30g2000prh.googlegroups.com...
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
Loading...