The PROPID_M_APPSPECIFIC property specifies application-generated information such as single integer values or application-defined message classes.
When passing PROPID_M_APPSPECIFIC to MQReceiveMessage, the corresponding VT field in the aPropVar array can be set to VT_NULL.
In addition to PROPID_M_APPSPECIFIC, you can use the PROPID_M_CORRELATIONID message property for sorting.
This example shows how PROPID_M_APPSPECIFIC is specified in the MQMSGPROPS structure:
MsgProps.aPropID[i] = PROPID_M_APPSPECIFIC; //PropId
MsgProps.aPropVar[i].vt = VT_UI4; //Type
MsgProps.aPropVar[i].ulVal = 444; //Value
For an example of using PROID_M_APPSPECIFIC, see Reading Messages Using a Cursor.
Windows NT: Requires version 4.0 SP3 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mq.h.
Import Library: Use mqrt.lib.
Unicode: Defined only as Unicode.
MQReceiveMessage, MQSendMessage, PROPID_M_CORRELATIONID