Address Book Provider Sample
Applies to: Office 2010 | Outlook 2010 | Visual Studio
This sample supports a single read-only container for display names and e-mail addresses, which are read from a flat binary file. The sample supports one-off templates and all configuration options except the Profile Wizard.
You can download this sample from Outlook Messaging API (MAPI) Code Samples.
Executable: |
SABP32.dll |
Source code directory: |
SampleAddressBookProvider\SABP |
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:
Table restrictions. The sample implements prefix-match and ambiguous-name resolution. It does not implement the full MAPI restriction language, and restrictions are supported only on the display name.
A details display table for messaging users.
One-off addresses.
An advanced search dialog box.
An IMAPIStatus : IMAPIProp interface. This interface is partially supported; its IMAPIProp methods are delegated to the IPropData interface. For more information, see the IPropData : IMAPIProp interface.
Interactive and programmatic configuration.
Unsupported Features
This sample does not support the following features:
Sorting.
Distribution lists.
Creating, deleting, and modifying entries.
Properties with multiple values.
Named properties.
Distinguishing between first and last names in display names.
To install the Sample Address Book Provider
To download the Sample Address Book Provider, see Downloading the Outlook MAPI Samples.
Locate the folder where you saved the Outlook MAPI Samples. Right-click the OutlookMAPISamples-<version number> zip folder and click Extract All.
Click Browse, select the location where you want to save the sample, and click Extract.
Run Visual Studio 2008.
In Visual Studio 2008, click File, select Open, and then click Project/Solution.
Browse to the location where you saved the sample, click SABP.vcproj, and then click Open.
On the Build menu, click Build Solution.
In the Save File As dialog box, click Save.
In the folder where you saved the sample, right-click the install.bat file and click Run as administrator.
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.