Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Retrieves the specified interface of the hosted control.

HRESULT QueryControl( 
   REFIID iid, 
   void** ppUnk  
template <class Q> 
HRESULT QueryControl( 
   Q** ppUnk  


[in] Specifies the IID of the control's interface.


[out] A pointer to the interface of the control. In the template version of this method, there is no need for a reference ID as long as a typed interface with an associated UUID is passed.


[in] The interface that is being queried for.

A standard HRESULT value.

Header: atlwin.h

© 2015 Microsoft