This is the best thing that comes into my head and taking into account that you are automating Outlook 2K and want the PST available to you at the next startup of Outlook/MAPI.
1] Using VB, VBScript, C++, or Delphi - use Outlook's Application.Quit method from automation to force outlook closed.
2] Release object above to clean out any last pointers in memory.
3] Work with the PST file in question
4] Create a new automation object refering to the Outlook.Application.
5] Open/Create an Explorer window for one of the default folders and display it.
6] Release object created in #4
The only thing that might hold you up is any other MAPI enable applications keeping the MAPI Spooler and running. In this case you are right back to what VinceA stated. Trying to figure out a way to get the MAPI Subsystem to shutdown gracefully.
Main Topics
Browse All Topics





by: VinceAPosted on 2000-05-14 at 08:09:36ID: 2808456
From everything I've seen, you can't close the PST without closing Outlook (and the MAPI spooler terminating - if it's in use)