52 (
LPSTR)lpDestinationPath))
93 DPRINT(
"CopyDirectory (%S, %S) called\n",
94 lpDestinationPath, lpSourcePath);
96 wcscpy(szFileName, lpSourcePath);
107 wcscpy(szFullSrcName, lpSourcePath);
110 wcscpy(szFullDstName, lpDestinationPath);
115 if (
wcscmp(FindFileData.cFileName,
L".") &&
116 wcscmp(FindFileData.cFileName,
L".."))
118 wcscpy(lpSrcPtr, FindFileData.cFileName);
119 wcscpy(lpDstPtr, FindFileData.cFileName);
123 DPRINT(
"Create directory: %S\n", szFullDstName);
145 DPRINT(
"Copy file: %S -> %S\n", szFullSrcName, szFullDstName);
169 DPRINT(
"CopyDirectory() done\n");
183 DPRINT(
"CreateDirectoryPath() called\n");
185 if (lpPathName ==
NULL || *lpPathName == 0)
189 lpSecurityAttributes))
215 lpSecurityAttributes))
229 DPRINT(
"CreateDirectoryPath() done\n");
256 if (
wcscmp(FindData.cFileName,
L".") &&
257 wcscmp(FindData.cFileName,
L".."))
329 DPRINT(
"Delete directory: '%S'\n", lpPathName);
BOOL WINAPI SetFileAttributesW(LPCWSTR lpFileName, DWORD dwFileAttributes)
BOOL WINAPI CreateDirectoryW(IN LPCWSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
BOOL WINAPI FindNextFileW(IN HANDLE hFindFile, OUT LPWIN32_FIND_DATAW lpFindFileData)
LPWSTR AppendBackslash(LPWSTR String)
#define FILE_ATTRIBUTE_SYSTEM
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
#define ERROR_NOT_ENOUGH_MEMORY
#define INVALID_HANDLE_VALUE
DWORD WINAPI GetLastError(VOID)
BOOL CopyDirectory(LPCWSTR lpDestinationPath, LPCWSTR lpSourcePath)
BOOL WINAPI DeleteFileW(IN LPCWSTR lpFileName)
NTSYSAPI BOOLEAN NTAPI RtlCreateUnicodeStringFromAsciiz(_Out_ PUNICODE_STRING Destination, _In_ PCSZ Source)
BOOL WINAPI RemoveDirectoryW(IN LPCWSTR lpPathName)
#define ERROR_NO_MORE_FILES
#define FILE_ATTRIBUTE_DIRECTORY
BOOL RemoveDirectoryPath(LPCWSTR lpPathName)
_CONST_RETURN wchar_t *__cdecl wcschr(_In_z_ const wchar_t *_Str, wchar_t _Ch)
BOOL WINAPI CopyFileW(IN LPCWSTR lpExistingFileName, IN LPCWSTR lpNewFileName, IN BOOL bFailIfExists)
#define FILE_ATTRIBUTE_READONLY
static BOOL RecursiveRemoveDir(LPCWSTR lpPath)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
#define FILE_ATTRIBUTE_NORMAL
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
BOOL WINAPI CopyProfileDirectoryA(LPCSTR lpSourcePath, LPCSTR lpDestinationPath, DWORD dwFlags)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
BOOL CreateDirectoryPath(LPCWSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
BOOL WINAPI CreateDirectoryExW(IN LPCWSTR lpTemplateDirectory, IN LPCWSTR lpNewDirectory, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define ERROR_ALREADY_EXISTS
BOOL WINAPI CopyProfileDirectoryW(LPCWSTR lpSourcePath, LPCWSTR lpDestinationPath, DWORD dwFlags)
HANDLE WINAPI FindFirstFileW(IN LPCWSTR lpFileName, OUT LPWIN32_FIND_DATAW lpFindFileData)
BOOL WINAPI FindClose(HANDLE hFindFile)