Message Store Provider Sample

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This sample uses directories as folders and OLE 2.0 document files as messages (with the MAPI message-on-storage utility). The sample supports all required features for a default message store. Neither the IMAPIProp : IUnknown nor IMAPITable : IUnknown interfaces are native; they are provided by the message-on-storage utility and the ITableData : IUnknown interface, respectively. You can download this sample from Outlook Messaging API (MAPI) Code Samples.

Executable:

WrpPST32.dll

Source code directory:

SampleWrappedPSTStoreProvider\WrapPST

Language:

C++

Platforms:

Microsoft Visual Studio 2008 to compile for Windows Vista, Windows Server 2008, Windows XP SP2, and Windows Server 2003 SP1

Supported Features

This sample supports the following features:

  • Basic operations such as reading, creating, modifying, and deleting messages; browsing, creating, and deleting folders; submitting outbound messages to transports; and associating all types of attachments with messages. Properties with multiple values are supported for all objects. You can use the sample message store as the default message store for a MAPI client.

  • Moving and copying messages and folders. These operations are delegated to MAPI support functions unless an operation occurs entirely in one sample message store.

  • Event notification on tables.

  • Thread safety.

Unsupported Features

This sample does not support the following features:

To install the Sample Wrapped PST Store Provider

  1. To download the Sample Wrapped PST Provider, see Downloading the Outlook 2007 MAPI Samples.

  2. Locate the folder where you saved the Outlook 2007 MAPI Samples. Right-click the OutlookMAPISamples-<version number> zip folder and click Extract All.

  3. Click Browse, select the location where you want to save the sample, and click Extract.

  4. Run Visual Studio 2008.

  5. In Visual Studio 2008, click File, select Open, and then click Project/Solution.

  6. Browse to the location where you saved the sample, click WrapPST.vcproj, and then click Open.

  7. On the Build menu, click Build Solution.

  8. In the Save File As dialog box, click Save.

  9. In the folder where you saved the sample, right-click the install.bat file and click Run as administrator.

  10. In the User Account Control dialog box, click Continue.

    Note

    Install.bat copies the .dll to the default Microsoft Office installation folder, C:\Program Files\Microsoft Office\Office12\. If you have installed Office products in a different location, right-click Install.bat and click Edit. The file opens in Notepad. Replace the default installation path with the installation path used on your computer.