PROPID_M_MSGID

The PROPID_M_MSGID property indicates the MSMQ-generated identifier of the message.

Type Indicator
VT_VECTOR | VT_UI1
PROPVARIANT Field
caub
Property Values
20-byte MSMQ-generated message identifier.

Remarks

MSMQ generates a 20-byte message identifier and attaches it to the message when the message is sent. The identifier is an array of bytes that can be read by either the sending or receiving application.

MSMQ generates message identifiers for all messages, including acknowledgment messages generated by MSMQ and MSMQ connector applications. When an acknowledgment message is created, the identifier of the original message can be found in the acknowledgment message's PROPID_M_CORRELATIONID property.

To read a message's identifier, pass PROPID_M_MSGID to MQSendMessage when sending the message, or to MQReceiveMessage, when reading the message in the queue.

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