Share via


CComControlBase::InternalGetSite

Call this method to query the control site for a pointer to the identified interface.

HRESULT InternalGetSite( 
   REFIID riid, 
   void** ppUnkSite  
);

Parameters

  • riid
    The IID of the interface pointer that should be returned in ppUnkSite.

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

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

If the site supports the interface requested in riid, the pointer is returned by means of ppUnkSite. Otherwise, ppUnkSite is set to NULL.

Requirements

Header: atlctl.h

See Also

Reference

CComControlBase Class