ReactOS  0.4.14-dev-52-g6116262
CIDLDataObj.cpp File Reference
#include "precomp.h"
Include dependency graph for CIDLDataObj.cpp:

Go to the source code of this file.

Classes

class  IEnumFORMATETCImpl
 
class  CIDLDataObj
 

Macros

#define MAX_FORMATS   5
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (shell)
 
HRESULT IEnumFORMATETC_Constructor (UINT cfmt, const FORMATETC afmt[], IEnumFORMATETC **ppFormat)
 
static HGLOBAL RenderPREFEREDDROPEFFECT (DWORD dwFlags)
 
HRESULT IDataObject_Constructor (HWND hwndOwner, PCIDLIST_ABSOLUTE pMyPidl, PCUIDLIST_RELATIVE_ARRAY apidl, UINT cidl, IDataObject **dataObject)
 
HRESULT WINAPI SHCreateDataObject (PCIDLIST_ABSOLUTE pidlFolder, UINT cidl, PCUITEMID_CHILD_ARRAY apidl, IDataObject *pdtInner, REFIID riid, void **ppv)
 

Macro Definition Documentation

◆ MAX_FORMATS

#define MAX_FORMATS   5

Definition at line 141 of file CIDLDataObj.cpp.

Function Documentation

◆ IDataObject_Constructor()

HRESULT IDataObject_Constructor ( HWND  hwndOwner,
PCIDLIST_ABSOLUTE  pMyPidl,
PCUIDLIST_RELATIVE_ARRAY  apidl,
UINT  cidl,
IDataObject **  dataObject 
)

Definition at line 411 of file CIDLDataObj.cpp.

412 {
413  if (!dataObject)
414  return E_INVALIDARG;
415  return ShellObjectCreatorInit<CIDLDataObj>(hwndOwner, pMyPidl, apidl, cidl, IID_PPV_ARG(IDataObject, dataObject));
416 }
#define IID_PPV_ARG(Itype, ppType)
#define E_INVALIDARG
Definition: ddrawi.h:101

Referenced by CIDLData_CreateFromIDArray(), CNetFolder::GetUIObjectOf(), CControlPanelFolder::GetUIObjectOf(), CDrivesFolder::GetUIObjectOf(), CDesktopFolder::GetUIObjectOf(), CFSFolder::GetUIObjectOf(), and CRegFolder::GetUIObjectOf().

◆ IEnumFORMATETC_Constructor()

HRESULT IEnumFORMATETC_Constructor ( UINT  cfmt,
const FORMATETC  afmt[],
IEnumFORMATETC **  ppFormat 
)

Definition at line 130 of file CIDLDataObj.cpp.

131 {
132  return ShellObjectCreatorInit<IEnumFORMATETCImpl>(cfmt, afmt, IID_PPV_ARG(IEnumFORMATETC, ppFormat));
133 }
#define IID_PPV_ARG(Itype, ppType)

Referenced by IEnumFORMATETCImpl::Clone(), CIDLDataObj::EnumFormatEtc(), and SHCreateStdEnumFmtEtc().

◆ RenderPREFEREDDROPEFFECT()

static HGLOBAL RenderPREFEREDDROPEFFECT ( DWORD  dwFlags)
static

Definition at line 228 of file CIDLDataObj.cpp.

229 {
230  DWORD * pdwFlag;
231  HGLOBAL hGlobal;
232 
233  TRACE("(0x%08x)\n", dwFlags);
234 
235  hGlobal = GlobalAlloc(GHND|GMEM_SHARE, sizeof(DWORD));
236  if(!hGlobal) return hGlobal;
237  pdwFlag = (DWORD*)GlobalLock(hGlobal);
238  *pdwFlag = dwFlags;
239  GlobalUnlock(hGlobal);
240  return hGlobal;
241 }
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
Definition: heapmem.c:368
#define GMEM_SHARE
Definition: winbase.h:302
#define GHND
Definition: winbase.h:294
#define TRACE(s)
Definition: solgame.cpp:4
unsigned long DWORD
Definition: ntddk_ex.h:95
LPVOID NTAPI GlobalLock(HGLOBAL hMem)
Definition: heapmem.c:755
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
Definition: heapmem.c:1190

Referenced by CIDLDataObj::GetData().

◆ SHCreateDataObject()

HRESULT WINAPI SHCreateDataObject ( PCIDLIST_ABSOLUTE  pidlFolder,
UINT  cidl,
PCUITEMID_CHILD_ARRAY  apidl,
IDataObject pdtInner,
REFIID  riid,
void **  ppv 
)

Definition at line 423 of file CIDLDataObj.cpp.

424 {
426  {
427  return CIDLData_CreateFromIDArray(pidlFolder, cidl, apidl, (IDataObject **)ppv);
428  }
429  return E_FAIL;
430 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
const GUID IID_IDataObject
#define E_FAIL
Definition: ddrawi.h:102
HRESULT WINAPI CIDLData_CreateFromIDArray(PCIDLIST_ABSOLUTE pidlFolder, UINT cpidlFiles, PCUIDLIST_RELATIVE_ARRAY lppidlFiles, LPDATAOBJECT *ppdataObject)
Definition: shellord.c:1778
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95

Referenced by CCPLItemMenu::InvokeCommand(), SH_ShowDriveProperties(), and SH_ShowPropertiesDialog().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( shell  )