IRpcChannelBuffer::SendReceive method (objidlbase.h)
Sends a method invocation across an RPC channel to the server stub.
HRESULT SendReceive( [in, out] RPCOLEMESSAGE *pMessage, [out] ULONG *pStatus );
[in, out] pMessage
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||objidlbase.h (include ObjIdl.h)|