Share via


CComContainedObject::QueryInterface

Retrieves a pointer to the interface requested on the owner object.

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

Parameters

  • 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.

Return Value

A standard HRESULT value.

Requirements

Header: atlcom.h

See Also

Reference

CComContainedObject Class