53{
54 TRACE(
"(%p)\n",
this);
55
56 if (!pDataObject)
57 {
58 ERR(
"pDataObject is NULL\n");
59 *pdwEffect = 0;
62 }
63
68
69
70 CDataObjectHIDA pida(pDataObject);
72 {
73 *pdwEffect = 0;
75 return pida.hr();
76 }
77
78 UINT iItem, cItems = pida->cidl;
79
80
84
85
89 for (iItem = 0; iItem < cItems; ++iItem)
90 {
91
94
95
96 szSrc[0] = 0;
98 {
99
101 hr = pDesktop->GetDisplayNameOf(pidl, SHGDN_INFOLDER, &strret);
103 break;
106 break;
108 break;
109 }
110
111 if (iItem > 0)
113 strSrcList += szSrc;
114 }
115
116 if (iItem != cItems)
117 {
118
122
123 *pdwEffect = 0;
126 }
127
129
130
132
133
136 {
137 if (pszzSrcList[
i] ==
L'|')
138 pszzSrcList[
i] =
L'\0';
139 }
140
141
144 fileop.
pFrom = pszzSrcList;
149 {
150 ERR(
"SHFileOperationW failed with 0x%x\n",
res);
152 }
153
154
156
159}
HRESULT WINAPI SHGetDesktopFolder(IShellFolder **psf)
void ReleaseBuffer(_In_ int nNewLength=-1)
int GetLength() const noexcept
void __cdecl Format(UINT nFormatID,...)
#define IDS_NOSRCFILEFOUND
#define FAILED_UNEXPECTEDLY(hr)
BOOL WINAPI SHGetSpecialFolderPathW(HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate)
BOOL WINAPI PathFileExistsW(LPCWSTR lpszPath)
HRESULT WINAPI StrRetToBufW(LPSTRRET src, const ITEMIDLIST *pidl, LPWSTR dest, UINT len)
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
static DWORD DWORD void LPSTR DWORD cch
LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST pidl, LPWSTR pszPath)
#define FOF_MULTIDESTFILES
#define FOF_NOCONFIRMMKDIR
static PCUIDLIST_RELATIVE HIDA_GetPIDLItem(CIDA const *pida, SIZE_T i)
static PCUIDLIST_ABSOLUTE HIDA_GetPIDLFolder(CIDA const *pida)
int WINAPI SHFileOperationW(LPSHFILEOPSTRUCTW lpFileOp)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)