Quantcast
Channel: MFCMAPI
Viewing all articles
Browse latest Browse all 1090

New Post: Outlook 2007 does not terminate after the MapiLogonEx

0
0
Hi,

After looking at the MFCMapi code, I have written a Mapi application which reads all the contacts from address book. On couple of machines(Windows XP with Outlook 2007) I have found that I could not close the Outlook(i.e even after closing the Outlook, I could see the Outlook.exe process in the task manager)

After some research I found that if I just do MapiLogonEx, I am not able to close the Outlook. Currently I am using MAPI_EXTENDED | MAPI_NO_MAIL | MAPI_NEW_SESSION | MAPI_USE_DEFAULT, but I have tried most of the other combinations, and it does not seem to be working.

When I used the MfcMapi(Session->Advanced Logon ->Logon with Flags), this seemed to be working fine.

I have edited the MfcMapi code(i.e added a Sleep for 5 minutes just after the MapiLognEx function). In this case, I could not terminate the Outlook.

So, my conclusion is MfcMapi does something after MapiLogonEx, which I am not doing in my application. Can you please help me in solving this issue?

Any help is appreciated.

Note: In one of the machines I could reproduce this every time.

Regards,
Rohan

Viewing all articles
Browse latest Browse all 1090

Latest Images

Trending Articles





Latest Images