Friday, August 08, 2008

MAPISpy update

Added logging of LPDTPAGE lpPage parameter for BuildDisplayTable.
Several fixes in the hook engine to make work better under Windows 2003 server.

DOWNLOAD

3 comments:

Prabodh said...

Hi Henry,
I have a senario where I need to access a PST File and extract all its information using C++ , can you please give me some insight on how I can proceed.
Thanks
Prabodh

Henry Gusakovsky said...

You need:

1. Create profile.
  MAPIAdminProfiles
  IProfAdmin::CreateProfile
2. Add MSPST service to the profile
  IProfAdmin::AdminServices
  IMsgServiceAdmin::CreateMsgService
3. Configure added service to use your PST file.
  IMsgServiceAdmin::ConfigureMsgService
4. Logon to the created profile.
  MAPILogonEx
5. Open message PST store
  IMAPISession::GetMsgStoresTable
  IMAPITable::QueryRows
  IMAPISession::OpenMsgStore
6. Get root folder of the PST store.
  IMsgStore::OpenEntry
7. Traverse all folders you need.
  IMAPIFolder::GetHierarchyTable
  IMAPIFolder::GetContentsTable

That should give you some reference where to look in MSDN

Henry Gusakovsky said...

Also look there.
MAPI example code for getting folders and messages