The IAddrBook::GetPAB method returns the entry identifier of the container designated as the personal address book (PAB).
HRESULT GetPAB(
ULONG FAR * lpcbEntryID,
LPENTRYID FAR * lppEntryID
);
Clients call the IAddrBook::GetPAB method to retrieve the entry identifier of the container designated as the PAB. If a PAB has not been established in the profile, MAPI selects as the PAB the first container in the address book hierarchy that allows modifications.
MAPIAllocateBuffer, MAPIFreeBuffer, PR_CONTAINER_FLAGS