3.17.4.1.22 Body (Opnum 28)

The Body method is received by the server in an RPC_REQUEST packet. In response, the server MUST set the represented Message.Body.

 [propput] HRESULT Body(
   [in] VARIANT varBody
 );

varBody: A VARIANT that contains the body content of the message. The supported VARIANT types are:

  • VT_I1

  • VT_UI1

  • VT_I2

  • VT_UI2

  • VT_I4

  • VT_UI4

  • VT_R4

  • VT_R8

  • VT_CY

  • VT_DATE

  • VT_BOOL

  • VT_BSTR

  • VT_UNKNOWN

  • VT_DISPATCH

  • VT_ARRAY | VT_UI1

Return Values: The method MUST return S_OK (0x00000000) on success or an implementation-specific error HRESULT on failure.

When processing this call, the server MUST follow these guidelines:

  • If the varBody input parameter is NOT a valid VARIANT type as previously described:

    • Return E_INVALIDARG (0x80000003), and take no further action.

  • Set the represented Message.Body to the value contained in the varBody input parameter.