MCPcopy Create free account
hub / github.com/derceg/explorerplusplus / CopyHDropData

Method CopyHDropData

Explorer++/Helper/DropHandler.cpp:255–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255HRESULT DropHandler::CopyHDropData(IDataObject *pDataObject,
256 BOOL bPrefferedEffect,DWORD dwEffect)
257{
258 STGMEDIUM stg;
259 HRESULT hr = pDataObject->GetData(&m_ftcHDrop,&stg);
260
261 if(hr == S_OK)
262 {
263 auto hd = reinterpret_cast<HDROP>(GlobalLock(stg.hGlobal));
264
265 if(hd != NULL)
266 {
267 CopyDroppedFiles(hd,bPrefferedEffect,dwEffect);
268 GlobalUnlock(stg.hGlobal);
269 }
270
271 ReleaseStgMedium(&stg);
272 }
273
274 return hr;
275}
276
277HRESULT DropHandler::CopyShellIDListData(IDataObject *pDataObject,
278 std::list<std::wstring> &PastedFileList)

Callers

nothing calls this directly

Calls 1

GetDataMethod · 0.80

Tested by

no test coverage detected