PROPID_M_COMPOUND_MESSAGE_SIZE (Compact 2013)

3/26/2014

This property provides the size of an HTTP message, including the SOAP envelope and the SOAP attachments associated with it.

  • Property ID
    PROPID_M_COMPOUND_MESSAGE_SIZE
  • Type Indicator
    VT_UI4 (or VT_NULL)
  • MQPROPVARIANT Field
    ulVal
  • Property Values
    The size, in bytes, of the HTTP message, including the SOAP envelope and the SOAP attachments, provided by PROPID_M_COMPOUND_MESSAGE.

Remarks

The PROPID_M_COMPOUND_MESSAGE_SIZE property is a read-only property that is only used when retrieving HTTP messages.

To retrieve the contents of an HTTP message, including the SOAP envelope and the SOAP attachments associated with it, see PROPID_M_COMPOUND_MESSAGE.

Equivalent COM Property

There is no COM equivalent for this property.

Examples

The following code example shows how PROPID_M_COMPOUND_MESSAGE_SIZE is specified in the MQMSGPROPS structure when retrieving an HTTP message.

Important

For readability, the following code example does not contain security checking or error handling. Do not use the following code in a production environment.

MsgProps.aPropID[i] = PROPID_M_COMPOUND_MESSAGE_SIZE;
MsgProps.aPropVar[i].vt = VT_UI4;
i++;
DWORD dwMsgBufferSize = 4096;
UCHAR *pucMsgBuffer = (UCHAR *)malloc(dwMsgBufferSize);
if (pucMsgBuffer == NULL) {
    // Error handling code (not included for clarity)
}
MsgProps.aPropID[i] = PROPID_M_COMPOUND_MESSAGE;
MsgProps.aPropVar[i].vt = VT_VECTOR|VT_UI1;
MsgProps.aPropVar[i].caub.pElems = (UCHAR*)pucMsgBuffer;
MsgProps.aPropVar[i].caub.cElems = dwMsgBufferSize;
i++;

See Also

Reference

MSMQ Properties
MQMSGPROPS