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


CComObjectRootEx::InternalQueryInterface

Retrieves a pointer to the requested interface.

static HRESULT InternalQueryInterface(
   void* pThis,
      const _ATL_INTMAP_ENTRY* pEntries,
      REFIID iid,
      void** ppvObject 
);

Параметры

  • pThis
    [in] A pointer to the object that contains the COM map of interfaces exposed to QueryInterface.

  • pEntries
    [in] A pointer to the _ATL_INTMAP_ENTRY structure that accesses a map of available interfaces.

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

  • ppvObject
    [out] A pointer to the interface pointer specified in iid, or NULL if the interface is not found.

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

One of the standard HRESULT values.

Заметки

InternalQueryInterface only handles interfaces in the COM map table. If your object is aggregated, InternalQueryInterface does not delegate to the outer unknown. You can enter interfaces into the COM map table with the macro COM_INTERFACE_ENTRY or one of its variants.

Требования

Header: atlcom.h

См. также

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

CComObjectRootEx Class

CComObjectRootEx Members

CComObjectRootEx::InternalAddRef

CComObjectRootEx::InternalRelease