_com_ptr_t::QueryInterface
Microsoft Specific
Calls the QueryInterface member function of IUnknown
on the encapsulated interface pointer.
Syntax
template<typename _InterfaceType> HRESULT QueryInterface (
const IID& iid,
_InterfaceType*& p
) throw ( );
template<typename _InterfaceType> HRESULT QueryInterface (
const IID& iid,
_InterfaceType** p
) throw( );
Parameters
iid
IID
of an interface pointer.
p
Raw interface pointer.
Remarks
Calls IUnknown::QueryInterface
on the encapsulated interface pointer with the specified IID
and returns the resulting raw interface pointer in p. This routine returns the HRESULT to indicate success or failure.
END Microsoft Specific
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for