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.
MQReceiveMessage, MQSendMessage, PROPID_M_CORRELATIONID