PROPID_M_TRACE (Compact 2013)

3/26/2014

This property specifies where report messages are sent when tracing a message.

  • Type Indicator
    VT_UI1 (or VT_NULL)
  • PROPVARIANT Field
    bVal
  • Property Values
    This property can be set to one of the following values.

    Value

    Description

    MQMSG_SEND_ROUTE_TO_REPORT_QUEUE

    Each hop made by the original message generates a report that is recorded in a report message.

    The elements of the report are the source Queue Manager, message identifier, target, time, and next hop.

    The report message is sent to the report queue specified by the source Queue Manager.

    MQMSG_TRACE_NONE

    The default. No tracing for this message.

Remarks

If MQMSG_SEND_ROUTE_TO_REPORT_QUEUE is specified but the report queue is not defined by the MSMQ administrator for the source Queue Manager of the message, this property is ignored.

To set where report messages are sent, specify PROPID_M_TRACE in the MQMSGPROPS structure and call MQSendMessage.

To retrieve where report messages are sent, specify PROPID_M_TRACE in the MQMSGPROPS structure. Then call MQReceiveMessage and examine the returned value.

When specifying PROPID_M_TRACE, you can set its Type Indicator to VT_NULL. When the Type Indicator is set to VT_NULL, MSMQ sets the VT field to the appropriate type indicator.

Examples

This example shows how PROPID_M_TRACEis specified in the MQMSGPROPS structure.

aMsgPropId[i] = PROPID_M_TRACE;
aMsgPropVar[i].vt = VT_UI1;
aMsgPropVar[i].bVal = MQMSG_SEND_ROUTE_TO_REPORT_QUEUE;
 i++; 

Note

OS versions prior to 2.12 require the MSMQ add-on pack.

Requirements

Header

mq.h

See Also

Reference

MSMQ Properties
MQReceiveMessage
MQSendMessage
MQMSGPROPS