Finding the Global Address List
To find the global address list
-
Start a MAPI session. For information on how to do this, see the first two steps of Opening an Information Store.
-
Open the address book by calling IMAPISession::OpenAddressBook, passing the interface identifier (IID) of the address book object. This call returns an lppAdrBook parameter, which points to a variable where the pointer to the returned address book object is stored.
-
Call HrFindExchangeGlobalAddressList to obtain the entry identifier (lppeid) of the global address list container within the address book.
-
Call the OpenEntry function, passing the entry identifier returned in step 2.