Export (0) Print
Expand All

IRpcChannelBuffer::SendReceive method

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

Syntax


HRESULT SendReceive(
  [in, out]  RPCOLEMESSAGE *pMessage,
  [out]      ULONG *pStatus
);

Parameters

pMessage [in, out]

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

pStatus [out]

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 | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IRpcChannelBuffer is defined as D5F56B60-593B-101A-B569-08002B2DBF7A

See also

IRpcChannelBuffer

 

 

Community Additions

ADD
Show:
© 2014 Microsoft