IMAPISession::OpenAddressBook fails on Windows 2000 / Outlook

IMAPISession::OpenAddressBook fails on Windows 2000 / Outlook

Post by SmltIE1vb3 » Fri, 21 Oct 2005 01:18:08


Outlook 2000 (with SP3) is installed in Corporate or Workgroup mode.
 
 
 

IMAPISession::OpenAddressBook fails on Windows 2000 / Outlook

Post by Dmitry Str » Fri, 21 Oct 2005 01:23:43

Does Outlook show the contents of the Contacts folder Ok in the address book
window when you use the same profile?

Dmitry Streblechenko (MVP)
http://www.yqcomputer.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

 
 
 

IMAPISession::OpenAddressBook fails on Windows 2000 / Outlook

Post by SmltIE1vb3 » Fri, 21 Oct 2005 03:03:04

Yes, the Address Book dialog within Outlook is exactly what I am trying to
display in my application. I think there is only one Outlook profile. I don't
specify a particular profile in my code, but I set the MAPI_USE_DEFAULT flag
in the call to MAPILogonEx.
 
 
 

IMAPISession::OpenAddressBook fails on Windows 2000 / Outlook

Post by Dmitry Str » Fri, 21 Oct 2005 04:03:40

So you create a new MAPI session, not get one from Outlook, right? Try to
open all message stores in the session
(IMAPISession::GetMsgStoresTable/OpenMsgStore) to make sure CONTAB can use
the Contacts folders in the session stores before you open the adddress
book.

Dmitry Streblechenko (MVP)
http://www.yqcomputer.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool