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


CComPtrBase::QueryInterface

Call this method to return a pointer to a specified interface.

template <
   class Q
> HRESULT QueryInterface(Q** pp ) const throw( );

Параметры

  • Q
    The object type whose interface pointer is required.

  • pp
    Address of output variable that receives the requested interface pointer.

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

Returns S_OK on success, or E_NOINTERFACE on failure.

Заметки

This method calls IUnknown::QueryInterface.

In debug builds, an assertion error will occur if pp is not equal to NULL.

Требования

Header: atlcomcli.h

См. также

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

CComPtrBase Class

CComPtrBase Members

CComPtrBase::SetSite