EvoCorp Home    IridiumX Assist Home   

 

IInterfaceHandler IntfQueryInterface Method

Represents the proxy QueryInterface call for the interface brokered by this handler.

Parameters

IID

Identifier of the interface being requested from the brokered interface.

Obj

Address of the pointer variable that receives the interface pointer requested in IID.

Return Value

This function should return the same values as IUnknown::QueryInterface.

Remarks

IntfQueryInterface will be called instead of the QueryInterface implementation of the interface being brokered. It is up to your handler to determine whether or not the original QueryInterface method (of the interface being brokered) is called.

Note that any calls to the brokered interface must be done using the lpBrokeredInterface pointer passed in to the InitializeHandler call. Using the interface pointer passed to ComBrokerRegisterInterface will cause the handlers implementation of the brokered interface to be called.