Platform SDK: Active Directory, ADSI, and Directory Services |
The ADsEnumerateNext function walks through a specified number of elements from the current cursor position of the enumerator. When the operation succeeds, the function returns the enumerated set of elements in a variant array. The number of returned elements can be smaller than the specified number.
HRESULT ADsEnumerateNext( IEnumVARIANT *pEnumVariant, ULONG cElements, VARIANT FAR *pvar, ULONG FAR *pcElementsFetched );
This method supports the standard return values, as well as the following:
For other return values, see ADSI Error Codes.
The general procedure to enumerate objects in a container involves the following:
For more information and a code example, see the ADsBuildEnumerator topic.
Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with DSClient).
Windows 95/98: Requires Windows 95 or later (with DSClient).
Header: Declared in Adshlp.h.
Library: Included as a resource in ActiveDs.dll.
ADSI Error Codes, ADSI Functions, ADsBuildEnumerator, ADsFreeEnumerator, FreeADsMem, IEnumVARIANT