About the MAPI Crash Recovery API

Applies to: Office 2010 | Outlook 2010 | Visual Studio

The MAPI Crash Recovery API checks the state of the Personal Folders file (PST) or Offline Folders file (OST) shared memory to verify that the data is in a consistent state. If it is in a consistent state, the MAPICrashRecovery function moves the data from the open PSTs or OSTs to disk and locks the PSTs or OSTs and does not allow any read or write access to the data. This ensures that the data remains in a consistent state 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 Outlook 2010 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.

This API provides the following:

Constants:

Functions:

See Also

Concepts

How to: Use the MAPI Crash Recovery API