Share via


3.17.4.1.20 BodyLength (Opnum 26)

The BodyLength method is received by the server in an RPC_REQUEST packet. In response, the server MUST return the number of bytes in the represented Message.Body.

 [propget] HRESULT BodyLength(
   [out, retval] long* pcbBody
 );

pcbBody: A pointer to a long integer that contains the number of bytes in the body of the message.

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:

  • Set the pcbBody output parameter to the byte length of the represented Message.Body.