IUnknownImpl_T::QueryInterface

HRESULTIUnknownImpl_T::QueryInterface(REFIIDriid, void **ppvObj)

Retrieve a pointer to an interface supported by this object.

Defined in: CppIface.h

Return Value

S_OK if the interface is supported, E_NOINTERFACE if not.

Parameters

riid

Identifier of the interface being requested.

ppvObj

Address of pointer variable that receives the interface pointer requested in riid.

Comments

Checks for IUnknown and the IID passed in as a template parameter.