IClientSecurity::CopyProxy

HRESULT IClientSecurity::CopyProxy(pProxy, riid, ppCopy)

This method makes a copy of the specified proxy. Its authentication information may be changed without affecting any users of the original proxy. The copy has the default values for the authentication information. The copy has one reference and must be released.

Local interfaces may not be copied. IUnknown, IMultiQuery, and IClientSecurity are examples of existing local interfaces.

Argument

Type

Description

pProxy

void*

This parameter indicates the proxy to copy.

riid

REFIIID

Identifies the proxy to return.

ppCopy

void**

The copy is returned to this parameter.

Returns

S_OK

Success.

E_NOINTERFACE

The interface riid is not supported by this object.