MCPcopy Create free account
hub / github.com/aseprite/laf / QueryInterface

Method QueryInterface

os/win/dnd.cpp:322–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322STDMETHODIMP DragTargetAdapter::QueryInterface(REFIID riid, LPVOID* ppv)
323{
324 if (!ppv)
325 return E_INVALIDARG;
326
327 *ppv = nullptr;
328 if (riid != IID_IDropTarget && riid != IID_IUnknown)
329 return E_NOINTERFACE;
330
331 *ppv = static_cast<IDropTarget*>(this);
332 AddRef();
333 return NOERROR;
334}
335
336ULONG DragTargetAdapter::AddRef()
337{

Callers 1

showWithNewAPIMethod · 0.80

Calls 1

AddRefFunction · 0.85

Tested by

no test coverage detected