PROPID_M_VERSION

 

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

(Read-only, introduced in MSMQ 3.0.) The PROPID_M_VERSION property specifies the wire format used to send the message.

Type Indicator

VT_UI4

MQPROPVARIANT Field

ulVal

Property Value

This property can be set to only the following value:

0x00000010

The message was sent with the wire format supported by MSMQ 1.0, MSMQ 2.0, and MSMQ 3.0.

Remarks

The sending queue manager attaches PROPID_M_VERSION to the message when it is sent.

To find out the wire format used to send the message, specify PROPID_M_VERSION in the MQMSGPROPS structure. Then, call MQReceiveMessage and examine the returned value.

Equivalent COM Property

With COM components, the equivalent property for retrieving the wire format used to send the message is MSMQMessage.SenderVersion.

Example Code

The following code fragment shows how PROPID_M_VERSION is specified in arrays that can be used to initialize an MQMSGPROPS structure for retrieving the wire format used to send the message.

aMsgPropId[i] = PROPID_M_VERSION;            // Property ID  
aMsgPropVar[i].vt = VT_UI4;                  // Type indicator  
i++;  

See Also

Message Properties
MSMQMessage.SenderVersion
MQReceiveMessage
MQReceiveMessageByLookupId