Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The CSort structure identifies a column, direction, and locale to sort by.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pidColumn |
|||||||||||||||||||||||||||||||
dwOrder |
|||||||||||||||||||||||||||||||
dwIndividual |
|||||||||||||||||||||||||||||||
locale |
pidColumn (4 bytes): A 32-bit unsigned integer. This is the index in CPidMapper for the property to sort by.
dwOrder (4 bytes): A 32-bit unsigned integer. MUST be one of the following values, specifying how to sort based on the column.
-
Value
Meaning
QUERY_SORTASCEND
0x00000000
The rows are to be sorted in ascending order based on the values in the column specified.
QUERY_DESCEND
0x00000001
The rows are to be sorted in descending order based on the values in the column specified.
dwIndividual (4 bytes): A 32-bit unsigned integer. dwIndividual specifies how to treat properties of type VT_VECTOR with regard to sorting and MUST be one of the following values.
-
Value
Meaning
QUERY_SORTALL
0x00000000
The complete property is used for sorting, resulting in a single row for each result.
QUERY_SORTINDIVIDUAL
0x00000001
Each element of the VT_VECTOR is used for sorting independently, possibly resulting in multiple rows for a single result.
locale (4 bytes): A 32-bit unsigned integer indicating the locale (as specified in [MS-LCID]) of the column. The locale determines the sorting rules to use when sorting textual values. The GSS can use the appropriate operating system facilities to do this.