IRpcChannelBuffer::SendReceive method (objidl.h)
Sends a method invocation across an RPC channel to the server stub.
HRESULT SendReceive( RPCOLEMESSAGE *pMessage, ULONG *pStatus );
A pointer to an RPCOLEMESSAGE structure that has been populated with marshaled data.
If not NULL, set to 0 on successful execution.
This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.
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.
|Minimum supported client||Windows 2000 Professional [desktop apps | UWP apps]|
|Minimum supported server||Windows 2000 Server [desktop apps | UWP apps]|
|Header||objidl.h (include ObjIdl.h)|