Platform SDK: Active Directory, ADSI, and Directory Services

LDAPSortKey

The LDAPSortKey structure stores sorting criteria for use by sort controls.

typedef struct ldapsortkey 
{
  PWCHAR  sk_attrtype;
  PWCHAR  sk_matchruleoid;
  BOOLEAN sk_reverseorder;
} LDAPSortKey, *PLDAPSortKey;

Members

sk_attrtype
The type of attribute sorted. Each attribute should have its own LDAPSortKey structure.
sk_matchruleoid
The object identifier (OID) of the matching rule for the sort.
sk_reverseorder
If TRUE, specifies that the sort be ordered from lowest to highest.

Remarks

The ldap_create_sort_control and ldap_search_init_page functions use this structure to specify how results should be sorted before being returned to the client.

Requirements

  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.
  Unicode: Declared as Unicode and ANSI structures.

See Also

Data Structures, ldap_create_sort_control, ldap_search_init_page, Using Controls