PROPID_M_BODY_SIZE

The PROPID_M_BODY_SIZE property indicates the actual size of the message body.

Type Indicator
VT_UI4 (or VT_NULL)
PROPVARIANT Field
ulVal
Property Values
Size of the message body.

Remarks

Each MSMQ message can have no more than 4 MB of data.

PROPID_M_BODY_SIZE is used only when reading messages from a queue. To find the size of a message, pass PROPID_M_BODY_SIZE to MQReceiveMessage and look at the returned value. PROPID_M_BODY_SIZE returns the actual size of the message body.

When passing PROPID_M_BODY_SIZE to MQReceiveMessage, the corresponding VT field in the aPropVar array can be set to VT_NULL.

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, PROPID_M_BODY