The PROPID_M_LABEL property specifies a label of the message.
If the sending application specifies a message label longer than 250 Unicode characters, MSMQ returns an MQ_ERROR_LABEL_TOO_LONG error to the aStatus array.
To find the label of a message, pass PROPID_M_LABEL and PROPID_M_LABEL_LEN to MQReceiveMessage and examine the returned values.
This example shows how PROPID_M_LABEL is specified in the MQMSGPROPS structure:
MsgProps.aPropID[i] = PROPID_M_LABEL; //PropId MsgProps.aPropVar[i].vt = VT_LPWSTR; //Type MsgProps.aPropVar[i].pwszVal = L"Hash hash"; //Value
For an example of using PROID_M_LABEL, see Sending Private Messages.
MQReceiveMessage, PROPID_M_LABEL_LEN