MCPcopy Create free account
hub / github.com/cinience/RedisStudio / QueryInterface

Method QueryInterface

DuiLib/Control/UIActiveX.cpp:331–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331STDMETHODIMP CActiveXCtrl::QueryInterface(REFIID riid, LPVOID *ppvObject)
332{
333 *ppvObject = NULL;
334 if( riid == IID_IUnknown ) *ppvObject = static_cast<IOleWindow*>(this);
335 else if( riid == IID_IOleClientSite ) *ppvObject = static_cast<IOleClientSite*>(this);
336 else if( riid == IID_IOleInPlaceSiteWindowless ) *ppvObject = static_cast<IOleInPlaceSiteWindowless*>(this);
337 else if( riid == IID_IOleInPlaceSiteEx ) *ppvObject = static_cast<IOleInPlaceSiteEx*>(this);
338 else if( riid == IID_IOleInPlaceSite ) *ppvObject = static_cast<IOleInPlaceSite*>(this);
339 else if( riid == IID_IOleWindow ) *ppvObject = static_cast<IOleWindow*>(this);
340 else if( riid == IID_IOleControlSite ) *ppvObject = static_cast<IOleControlSite*>(this);
341 else if( riid == IID_IOleContainer ) *ppvObject = static_cast<IOleContainer*>(this);
342 else if( riid == IID_IObjectWithSite ) *ppvObject = static_cast<IObjectWithSite*>(this);
343 if( *ppvObject != NULL ) AddRef();
344 return *ppvObject == NULL ? E_NOINTERFACE : S_OK;
345}
346
347STDMETHODIMP_(ULONG) CActiveXCtrl::AddRef()
348{

Callers 9

GetSiteMethod · 0.45
GetContainerMethod · 0.45
OnInPlaceActivateExMethod · 0.45
GetExtendedControlMethod · 0.45
DoVerbMethod · 0.45
MessageHandlerMethod · 0.45
ReleaseControlMethod · 0.45
DoCreateControlMethod · 0.45
GetControlMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected