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
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
3 comments:
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
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
Also look there.
MAPI example code for getting folders and messages
Post a Comment