abOpen

This function initializes the address book.

Syntax

HRESULT abOpen ( IfmManage *pFrmMgr, );

Parameters

pFrmMgr
[in] Pointer to the caller’s forms manager interface.

Return Values

NOERROR indicates success. S_FALSE indicates failure.

Remarks

You should initialize the name and icon of your application with the Forms Manager before calling the Address Book API.

The following code example shows how to use the Address Book API. The abOpen function is used to open the application.

AbOpen(pFrmMgr);
ABDIALOGIN abDl = {
 NULL,
 0,
 NULL,
 ABV_MAINVIEW,
 0
};
abDialog(&abDl);
WORD wNumProp = 2;
CEPROPID cepi[] = {HHPR_GIVEN_NAME, HHPR_SURNAME};
PCEPROPVAL pcepv;
abRead(abDl.ceoid, &wNumProp, cepi, &pcepv);
abClose();

See Also

abClose, abRead, abOpen