Platform SDK: MAPI

Accessing the Members of a Distribution List

To get the members of a distribution list

  1. Create a sized property tag array with the properties of the members you would like to retrieve, such as PR_ENTRYID, PR_DISPLAY_NAME, and PR_DISPLAY_TYPE.
  2. Call IAddrBook::OpenEntry to open the distribution list.
  3. Call the distribution list's IABContainer::GetContentsTable method to access its contents table.
  4. Call HrQueryAllRows to retrieve all of the table's rows representing the members of the distribution list.