Поделиться через


CComTearOffObject::QueryInterface

Retrieves a pointer to the requested interface.

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

Параметры

  • 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.

Возвращаемое значение

A standard HRESULT value.

Заметки

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.

Требования

Header: atlcom.h

См. также

Основные понятия

CComTearOffObject Class

CComTearOffObject Members

CComTearOffObject::AddRef

CComTearOffObject::Release