CComTearOffObject::QueryInterface

HRESULT QueryInterface( REFIID iid , void** ppvObject );

Return Value

A standard HRESULT value.

Parameters

iid   [in] The IID of the interface being requested.

ppvObject   [out] A pointer to the interface pointer identified by iid, or NULL if the interface is not found.

Remarks

Retrieves a pointer to the requested interface. Queries first for interfaces on your tear-off class. If the interface is not there, queries for the interface on the owner object. If the requested interface is IUnknown, returns the IUnknown of the owner.

CComTearOffObject OverviewClass Members

See Also   CComTearOffObject::AddRef, CComTearOffObject::Release