Microsoft KB Archive/266350

= INFO: WAB: Groups Are the Same as Distribution Lists (IDistList) =

Article ID: 266350

Article Last Modified on 7/13/2004

-

APPLIES TO


 * Microsoft Outlook Express 5.5
 * Microsoft Outlook Express 5.01 Service Pack 2
 * Microsoft Outlook Express 5.0
 * Microsoft Outlook Express 4.01 Service Pack 1
 * Microsoft Outlook Express 4.01 Service Pack 2
 * Microsoft Outlook Express 4.0

-



This article was previously published under Q266350



SUMMARY
Outlook Express uses the Windows Address Book (WAB) to store contact data. The application used to view Address Book information (Wab.exe) refers to Groups, but the WAB application programming interface (API) makes no mention of Groups. In the WAB API, a Group is called a distribution list, and is represented by the IDistList interface.



MORE INFORMATION
Distribution lists can be distinguished from regular contacts by the value of the PR_OBJECT_TYPE property; the value for a contact is MAPI_MAILUSER, and the value for a distribution list is MAPI_DISTLIST.

When a distribution list is encountered, call the OpenEntry method to get an IDistList pointer. Because IDistList inherits from IMAPIContainer, the GetContentsTable method can be used on this pointer to get the contacts contained within the distribution list.

