This function initializes the address book.
HRESULT abOpen ( IfmManage *pFrmMgr, );
NOERROR indicates success. S_FALSE indicates failure.
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();