Saturday, November 22, 2008

Looping through mailboxes on Exchange Server

http://support.microsoft.com/kb/200160
http://support.microsoft.com/kb/194627/EN-US/

Looks like HrMailboxLogon() is no longer available with latest EDK. It can be replaced with combination of CreateStoreEntryID() and OpenMsgStore(). Sample code of HrMailboxLogon() is available at the following location:

http://www.codeplex.com/MFCMAPI/SourceControl/changeset/file/view/7076/91722

Related link on how to find Server DN:

http://stackoverflow.com/questions/80831/how-to-find-out-the-distinguished-name-of-the-information-store-to-feed-to-iexc

To make sure that GetMailboxTable() succeeds, you need to run your code on server (use the exchange version of MAPI) and not on client side (Outlook).

http://www.tech-archive.net/pdf/Archive/Development/microsoft.public.win32.programmer.messaging/2007-06/msg00054.pdf

Programatically creating MAPI profiles:

http://support.microsoft.com/kb/306962

0 comments: