Finding the Global Address List

    To find the global address list
  1. Start a MAPI session. For information on how to do this, see the first two steps of Opening an Information Store.
  2. 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.
  3. Call HrFindExchangeGlobalAddressList to obtain the entry identifier (lppeid) of the global address list container within the address book.
  4. Call the OpenEntry function, passing the entry identifier returned in step 2.