Platform SDK: Active Directory, ADSI, and Directory Services |
When you use IDirectorySearch or IDirectoryObject, the attribute and range specifier replace the name of the attribute in the pAttributesName array that specifies the names of the attributes to return from the IDirectorySearch::ExecuteSearch and IDirectoryObject::GetObjectAttributes methods.
For example:
LPWSTR pszAttrs[2]; pszAttrs[0] = L"Name"; pszAttrs[1] = L"member;Range=0-100";