ADS_SORTKEY structure (iads.h)

The ADS_SORTKEY structure specifies how to sort a query.

Syntax

typedef struct _ads_sortkey {
  LPWSTR  pszAttrType;
  LPWSTR  pszReserved;
  BOOLEAN fReverseorder;
} ADS_SORTKEY, *PADS_SORTKEY;

Members

pszAttrType

The null-terminated Unicode string that contains the attribute type.

pszReserved

Reserved.

fReverseorder

Reverse the order of the sorted results.

Remarks

In Active Directory, if TRUE, the fReverseorder member specifies that the sort results be ordered from the lowest to the highest.

When using the LDAP system provider, the pszReserved member corresponds to the sk_matchruleoid of the LDAPSortKey structure and may be set to a NULL-terminated string that specifies the object identifier (OID) of the matching rule for the sort. For more information, see LDAPSortKey.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header iads.h

See also

ADSI Structures