IPSFactoryBuffer::CreateProxy method (objidlbase.h)

Creates a proxy for the specified remote interface.

Syntax

HRESULT CreateProxy(
  [in]  IUnknown        *pUnkOuter,
  [in]  REFIID          riid,
  [out] IRpcProxyBuffer **ppProxy,
  [out] void            **ppv
);

Parameters

[in] pUnkOuter

A controlling IUnknown interface; used for aggregation.

[in] riid

The identifier of the interface to proxy.

[out] ppProxy

A pointer to an IRpcProxyBuffer interface to control marshaling.

[out] ppv

A pointer to the interface specified by riid.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.

Remarks

The IUnknown implementation of the IRpcProxyBuffer interface must not delegate to the outer controlling IUnknown.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header objidlbase.h (include ObjIdl.h)

See also

IPSFactoryBuffer

IRpcProxyBuffer

Proxy