LDAPSortKey (Windows CE 5.0)

Send Feedback

This structure stores sorting criteria for use by sort controls.

typedef struct ldapsortkey {PWCHARsk_attrtype;PWCHARsk_matchruleoid;BOOLEANsk_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

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.