Share via


LDAPSortKey

This 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
    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

OS Versions: Windows CE .NET 4.0 and later.
Header: Winldap.h.

See Also

ldap_create_sort_control | ldap_search_init_page

 Last updated on Friday, April 09, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.