Share via


PROPID_M_COMPOUND_MESSAGE_SIZE (Windows Embedded CE 6.0)

1/6/2010

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.

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