0
votes

I am using C++ and extended mapi to copy the contents of a mailbox to a pst programmatically.In the end the pst file is created and it shows the correct size but as soon as i try to open it with outlook the data in pst file disappears.After i run my program the PST size is 10 MB and when i try to open it with outlook 2007 it shows it as an empty pst file.Can anyone please help me in this one.

I am using MS Exchange 2007 32 bit on windows Server 2003 with outlook 2007.

Thanks

1

1 Answers

0
votes

That means your app does not cleanly terminate and the PST provider does not get a chance to commit the data and write a special flag that would tell it on startup that it was shut down cleanly. Do you release all MAPI objects first? Do you call IMAPISession::Logoff? Do you call MAPIUninitialize?