Accessing the Members of a Distribution List
To get the members of a distribution list
-
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.
-
Call IAddrBook::OpenEntry to open the distribution list.
-
Call the distribution list's IABContainer::GetContentsTable method to access its contents table.
-
Call HrQueryAllRows to retrieve all of the table's rows representing the members of the distribution list.