Directory Services |
The ldap_search_init_page function initializes a search block for a simple paged-results search. This function is supported in LDAP 3.
PLDAPSearch ldap_search_init_page( PLDAP ExternalHandle, PCHAR DistinguishedName, ULONG ScopeOfSearch, PCHAR SearchFilter, PCHAR AttributeList[], ULONG AttributesOnly, PLDAPControl* ServerControls, PLDAPControl* ClientControls, ULONG PageTimeLimit, ULONG TotalSizeLimit, PLDAPSortKey* SortKeys );
Value | Meaning |
---|---|
LDAP_SCOPE_BASE | Search the base entry only. |
LDAP_SCOPE_ONELEVEL | Search all entries in the first level below the base entry, excluding the base entry. |
LDAP_SCOPE_SUBTREE | Search the base entry and all entries in the tree below the base. |
If the function succeeds, it returns a pointer to an LDAPSearch structure.
If the function fails, the return value is NULL. Use LdapGetLastError or GetLastError to retrieve the error code.
Call ldap_search_init_page to begin a paged-results search. When the function returns, use the returned handle to call.
To determine whether a server supports paged-results searches, check the supportedControl property off of the root for an object identifier (OID) of 1.2.840.113556.1.4.319.
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension
on Windows NT 4.0 SP6a and Windows 95/98/Me.
Unicode: Implemented as Unicode and ANSI versions on all
platforms.
Header: Declared in Winldap.h.
Library: Use Wldap32.lib.
Functions, GetLastError, LdapGetLastError, LDAPSearch, ldap_get_next_page, ldap_get_next_page_s, ldap_search_abandon_page, LDAPSortKey