IRpcChannelBuffer::SendReceive method (objidl.h)

Sends a method invocation across an RPC channel to the server stub.

Syntax

HRESULT SendReceive(
  RPCOLEMESSAGE *pMessage,
  ULONG         *pStatus
);

Parameters

pMessage

A pointer to an RPCOLEMESSAGE structure that has been populated with marshaled data.

pStatus

If not NULL, set to 0 on successful execution.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.

Remarks

Before invoking this method, the GetBuffer method must have been invoked to allocate a channel buffer. Upon return, the dataRepresentation buffer of the RPCOLEMESSAGE structure will have been modified to include the data returned by the method invoked on the server. If the invocation was successful, the RPC channel buffer has been freed; otherwise the caller must free it explicitly by calling FreeBuffer.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header objidl.h (include ObjIdl.h)

See also

IRpcChannelBuffer