PROPID_M_APPSPECIFIC

The PROPID_M_APPSPECIFIC property specifies application-generated information such as single integer values or application-defined message classes.

Type Indicator
VT_UI4 (or VT_NULL)
PROPVARIANT Field
ulVal
Property Values
Unsigned integer. The default is 0.

Remarks

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.

Example

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.

QuickInfo

  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.

See Also

MQReceiveMessage, MQSendMessage, PROPID_M_CORRELATIONID