IRpcProxyBuffer::Connect

HRESULT IRpcProxyBuffer::Connect(pRpcChannelBuffer)

Connect the interface proxy to the indicated RPC channel. The proxy should hold on to the channel, AddRef()ing it as per the usual rules. If the proxy is currently connected, then this call fails (with E_UNEXPECTED); call Disconnect() first if in doubt.

Argument

Type

Description

pRpcChannelBuffer

IRpcChannelBuffer*

The RPC channel that the interface proxy is to use to effect invocations to the server object. May not be NULL.

return value

HRESULT

S_OK, E_OUTOFMEMORY, E_NOINTERFACE, E_UNEXPECTED