Platform SDK: Active Directory, ADSI, and Directory Services |
The ldap_parse_sort_control function parses the sort control returned by the server.
ULONG ldap_parse_sort_control ( PLDAP ExternalHandle, PLDAPControl* Control, ULONG* Result, PCHAR* Attribute );
If the function succeeds, the return value is LDAP_SUCCESS.
If the function fails, it returns an error code. See Return Values for more information.
When the server returns the results, it returns a control in the SearchResultDone message. Call ldap_parse_sort_control to parse this sort control.
If the sort operation failed, the server may return the name of the attribute that caused the failure. In this case, call ldap_memfree to free the attribute value
Windows NT/2000: Requires Windows NT 4.0 SP4 or later.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in Winldap.h.
Library: Use Wldap32.lib.
Unicode: Declared as Unicode and ANSI prototypes.