ReactOS  0.4.15-dev-499-g1f31905
CFSDropTarget.cpp File Reference
#include <precomp.h>
Include dependency graph for CFSDropTarget.cpp:

Go to the source code of this file.

Macros

#define D_NONE   DROPEFFECT_NONE
 
#define D_COPY   DROPEFFECT_COPY
 
#define D_MOVE   DROPEFFECT_MOVE
 
#define D_LINK   DROPEFFECT_LINK
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (shell)
 
static WCHARBuildPathsList (LPCWSTR wszBasePath, int cidl, LPCITEMIDLIST *pidls)
 
HRESULT CFSDropTarget_CreateInstance (LPWSTR sPathTarget, REFIID riid, LPVOID *ppvOut)
 

Macro Definition Documentation

◆ D_COPY

#define D_COPY   DROPEFFECT_COPY

◆ D_LINK

#define D_LINK   DROPEFFECT_LINK

◆ D_MOVE

#define D_MOVE   DROPEFFECT_MOVE

◆ D_NONE

#define D_NONE   DROPEFFECT_NONE

Function Documentation

◆ BuildPathsList()

static WCHAR* BuildPathsList ( LPCWSTR  wszBasePath,
int  cidl,
LPCITEMIDLIST pidls 
)
static

Definition at line 33 of file CFSDropTarget.cpp.

34 {
35  WCHAR *pwszPathsList = (WCHAR *)HeapAlloc(GetProcessHeap(), 0, MAX_PATH * sizeof(WCHAR) * cidl + 1);
36  WCHAR *pwszListPos = pwszPathsList;
37 
38  for (int i = 0; i < cidl; i++)
39  {
40  FileStructW* pDataW = _ILGetFileStructW(pidls[i]);
41  if (!pDataW)
42  {
43  ERR("Got garbage pidl\n");
44  continue;
45  }
46 
47  PathCombineW(pwszListPos, wszBasePath, pDataW->wszName);
48  pwszListPos += wcslen(pwszListPos) + 1;
49  }
50  *pwszListPos = 0;
51  return pwszPathsList;
52 }
WCHAR wszName[1]
Definition: shlfolder.c:1555
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define GetProcessHeap()
Definition: compat.h:404
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define MAX_PATH
Definition: compat.h:26
#define ERR(fmt,...)
Definition: debug.h:110
FileStructW * _ILGetFileStructW(LPCITEMIDLIST pidl)
Definition: pidl.c:2344
LPWSTR WINAPI PathCombineW(LPWSTR lpszDest, LPCWSTR lpszDir, LPCWSTR lpszFile)
Definition: path.c:189
size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)

Referenced by CFSDropTarget::_CopyItems().

◆ CFSDropTarget_CreateInstance()

HRESULT CFSDropTarget_CreateInstance ( LPWSTR  sPathTarget,
REFIID  riid,
LPVOID ppvOut 
)

Definition at line 721 of file CFSDropTarget.cpp.

722 {
723  return ShellObjectCreatorInit<CFSDropTarget>(sPathTarget, riid, ppvOut);
724 }
REFIID riid
Definition: precomp.h:44

Referenced by CFSFolder::CreateViewObject(), and CFSFolder::GetUIObjectOf().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( shell  )