Share via


LDAPSortKey (Compact 2013)

3/26/2014

This structure stores sorting criteria for use by sort controls.

Syntax

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

Members

  • sk_attrtype
    Pointer to a null-terminated string that specifies the name of the attribute to use as a sort key. Use multiple LDAPSortKey structures to specify multiple sort keys.

    Note

    Active Directory supports only a single sort key.

  • sk_matchruleoid
    Pointer to a null-terminated string that specifies 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

Header

winldap.h

See Also

Reference

LDAP Structures
ldap_create_sort_control
ldap_search_init_page