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


CComObject::QueryInterface

Retrieves a pointer to the requested interface.

STDMETHOD(QueryInterface)(
   REFIID iid,
   void** ppvObject 
);
template <class Q>
HRESULT STDMETHODCALLTYPE QueryInterface(
   Q** pp
);

Параметры

  • iid
    [in] The identifier of the interface being requested.

  • ppvObject
    [out] A pointer to the interface pointer identified by iid. If the object does not support this interface, ppvObject is set to NULL.

  • pp
    [out] A pointer to the interface pointer identified by type Q. If the object does not support this interface, pp is set to NULL.

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

A standard HRESULT value.

Требования

Header: atlcom.h

См. также

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

CComObject Class

CComObject Members