Platform SDK: MAPI

Calling IAddrBook Methods

You can invoke most of the methods of the integrated IAddrBook interface from one or more of the dialog boxes included with the Address Book Viewer. The following table lists the most common ways of exercising IAddrBook methods with the Address Book Viewer.

To call Procedure
IAddrBook::Address From the Address Book menu, select one of the following:

Address 0 Well
Address 1 Well
Address 2 Well
Address 3 Well

IAddrBook::CreateOneOff From the Address Book menu, select CreateOneOff.
IAddrBook::Details From the AB Root Container dialog box, select Details.
IAddrBook::GetOneOffTable From the AB Root Container dialog box, select One-Off Tbl.
IAddrBook::GetPAB From any of the dialog boxes that contain it, select Add to PAB.
IAddrBook::NewEntry From the Address Book menu, select one of the following:

NewEntry
Address 1 Well
Address 2 Well
Address 3 Well

IAddrBook::OpenEntry From the AB Root Container dialog box, select Open Entry or select the Address List dialog box displayed as part of the name resolution operation.
IAddrBook::PrepareRecips From the Address List dialog box, select PrepareRecips.
IAddrBook::RecipOptions From the Address List dialog box displayed as part of the name resolution process, select RecipOptions.
IAddrBook::ResolveName Select one of the following:

From the AB Root Container dialog box, select ResolveName(s).
From the Address Book menu, select Resolve Name.


Many of these operations cause additional dialog boxes to be displayed, prompting for related information. For example, when you select Resolve Name from the Address Book menu, a dialog box is displayed into which you must enter the name to be resolved. Depending on the success of the operation, the Address Book Viewer either displays a Check Names dialog box or an Address List dialog box. Check Names allows you to select an entry from the container or to find a more appropriate entry from a different container. When the name is resolved, the Address List dialog allows you to view recipient properties or invoke IAddrBook::OpenEntry, IAddrBook::PrepareRecips, or IAddrBook::RecipOptions.