IPSFactoryBuffer::CreateProxy

HRESULT IPSFactoryBuffer::CreateProxy(pUnkOuter, iid, ppProxy, ppv)

Create a new interface proxy object. This function returns both an IRpcProxy instance and an instance of the interface which the proxy is being created to service in the first place. The newly created proxy is initially in the unconnected state.

Argument

Type

Description

pUnkOuter

IUnknown *

The controlling unknown of the aggregate in which the proxy is being created.

iid

REFIID

The interface id which the proxy is being created to service, and of which an instance should be returned through ppv.

ppProxy

IRpcProxyBuffer**

On exit, contains the new IRpcProxyBuffer instance.

ppv

void **

On exit, contains an interface pointer of type indicated by iid.

return value

HRESULT

S_OK, E_OUTOFMEMORY, E_NOINTERFACE, E_UNEXPECTED, no others.