How to: Use the MAPI Crash Recovery API
|How to: Use the MAPI Crash Recovery API|
This topic contains a code sample in C++ that shows how to call the MAPICrashRecovery function from the UnhandledExceptionFilter function. The MAPICrashRecovery function checks the state of the Personal Folders file (PST) or Offline Folders file (OST) shared memory. If the memory is in a consistent state, the MAPICrashRecovery function moves the data to disk and prevents further read or write access until the process is terminated. By ensuring that the PSTs or OSTs are in a consistent state before the process is terminated, you can prevent Microsoft Office Outlook 2007 from displaying the following error message and avoid performance problems.
A data file did not close properly the last time it was used and is being checked for problems. Performance might be affected while the check is in progress.