MCPcopy Create free account
hub / github.com/WinMerge/winmerge / QueryInterface

Method QueryInterface

Src/DropHandler.cpp:292–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290DropHandler::~DropHandler() = default;
291
292HRESULT STDMETHODCALLTYPE DropHandler::QueryInterface(REFIID riid, void **ppvObject)
293{
294 if (!IsEqualIID(riid, IID_IUnknown) && !IsEqualIID(riid, IID_IDropTarget))
295 {
296 *ppvObject = nullptr;
297 return E_NOINTERFACE;
298 }
299 *ppvObject = static_cast<IDropTarget *>(this);
300 AddRef();
301 return S_OK;
302}
303
304ULONG STDMETHODCALLTYPE DropHandler::AddRef(void)
305{

Callers 15

CreateShellLinkFunction · 0.45
GetListFunction · 0.45
AddUserTasksFunction · 0.45
launchProgramMethod · 0.45
ExpandShortcutFunction · 0.45
NeedsConversionFunction · 0.45
FindDesktopFolderViewFunction · 0.45
GetFolderViewFunction · 0.45
EnumSubCommandsFunction · 0.45
GetTIMethod · 0.45
GetTIMethod · 0.45

Calls 1

AddRefFunction · 0.85

Tested by

no test coverage detected