CComTearOffObject::QueryInterface
Retrieves a pointer to the requested interface.
STDMETHOD(QueryInterface)(
REFIID iid ,
void** ppvObject
);
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.
Return Value
A standard HRESULT value.
Remarks
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.
Requirements
Header: atlcom.h