Delen via


MQSORTKEY

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

The MQSORTKEY structure specifies a sort key for the query. Each key contains a queue property and a sort order. For detailed information about the properties that can be included in this structure, see Queue Properties.

typedef struct tagMQSORTKEY  
{  
  PROPID propColumn;  
  ULONG dwOrder;  
} MQSORTKEY;  

Members

propColumn

Queue property name to sort on (for example, PROPID_Q_QUOTA).

dwOrder

Sort order. Possible values are QUERY_SORTASCEND and QUERY_SORTDESCEND.

Remarks

An array of MQSORTKEY structures is specified in the aCol member of the MQSORTSET structure. Currently Message Queuing supports only one sort key.

For information on locating public queues in the directory service, see Locating Queues.

Requirements

Windows NT/2000/XP: Included in Windows NT 4.0 SP3 and later.

Windows 95/98/Me: Included in Windows 95 and later.

Header: Declared in Mq.h.

See Also

Message Queuing Structures
Queue Properties
MQSORTSET