2005-01-06 13:58:04 +00:00
|
|
|
/* $Id$
|
2000-03-14 23:09:23 +00:00
|
|
|
*
|
1999-03-19 05:55:55 +00:00
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS system libraries
|
|
|
|
* FILE: lib/kernel32/file/copy.c
|
|
|
|
* PURPOSE: Copying files
|
2000-03-14 23:09:23 +00:00
|
|
|
* PROGRAMMER: Ariadne (ariadne@xs4all.nl)
|
1999-03-19 05:55:55 +00:00
|
|
|
* UPDATE HISTORY:
|
|
|
|
* 01/11/98 Created
|
2005-05-09 01:46:57 +00:00
|
|
|
* 07/02/99 Moved to seperate file
|
1999-03-19 05:55:55 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* INCLUDES ****************************************************************/
|
|
|
|
|
2003-01-15 21:24:36 +00:00
|
|
|
#include <k32.h>
|
[KERNEL32]: While working on the CMAKE branch, Amine and myself discovered a rather serious issue in kernel32 (and perhaps other libraries as well). Unlike rbuild, CMake does not allow you to export non-existant DLL functions (try it: add "poopyhead" in kernel32's exports under RBuild, and will it export "poopyhead", God knowing what that will actually link to).
As an additional feature on top of the "allow non-existing functions to be exported" "feature", because rbuild generates and links STDCALL function names without the proper decoration (vs. enforcing decoration at linking, but only removing it at export-time), this allows the definition (as an export) of a STDCALL function that is completely different from the actual function itself.
For example, the 5-parameter Foo function is normally Foo@20, while the 3-parameter Foo function woudl be Foo@12. Linking one against the other would fail (say, 2 parameters were added to Foo in a newer version). However, under RBUILD, both of these would appear as "Foo", and the linker/compiler would happilly connect the caller of Foo@3 (that has pushed 3 parameters) to the receiving side of Foo@5 (that is about to pop 5 parameters).
Even -if- decorations WERE to be applied, Foo@12 would STILL succeed, because of the first feature, which would enable the export of Foo@12 even though no such function exist.
In a further, bizare, twist of fate, the behavior of this RBUILD "feature", when the target function is not found, is to link the exported DLL TO ITSELF.
Therefore, one can see how, previously to this patch, kernel32.dll would import a dozen functions from itself (all the non-existing functions).
To really seal the deal, the behavior of exported functions used by kernel32, but that are actually forwarded to another DLL deserves a special mention.
GetLastError, for example, merely forwards to RtlGetLastWin32Error, so it is normal behavior to use a #define in the C code so that all internal calls to the function are routed correctly.
This did not happen, so instead, kernel32 tried importing/linking/exporting GetLastError, but this symbol is not found in the binary, because it is only a forwarder.
This caused kernel32 to import from itself (the behavior when an exported symbol is not found). When importing from itself, the loader would now find the _forwarded_ for GetLastError, and correctly link with ntdll.
What should be a one-liner of assembly (inline TEB access) thus became a triple-call indirection (GetLastError@0->StubLastError@0->__impGetLastError@0->__impRtlGetLastWin32Error->RtlGetLastWin32Error.
While analyzing these issues, we also realized a strange macro SetLastErrorByStatus that manually tried to perform what there already exists a function for: RtlSetLastNtStatusFromWin32Error.
And, in an exciting coda, we also realized that our Server 2003 Kernel32 exports more than a dozen Windows 95 APIs, through an auto-stub generation mechanism within winebuild, that gets linked as an object behind the scenes.
[KERNEL32]: Removed all Win95 exports, cleaned up exports.
[KERNEL32]: Fixed up set/get error macros by making them inline and/or calling the correct ntdll function.
[KERNEL32]: Removed bizare calls to Wine-internal/specific APIs from our core Win32 DLL.
[KERNEL32]: Wrote stubs for all functions which should be exported, and set the correct number of parameters for them.
[KERNEL32]: Kernel32 is smaller, loads faster, does not export Windows 95 functions, does not export non-existing functions, and does not import from itself anymore.
Note: This is one of the many failings of RBUILD the CMAKE system has helped us discover. I believe these issues are serious enough to warrant an immediate sync with trunk, but rest assured, there are many more completely broken, infinitely-regressing things that we discovered while switching to CMAKE.
svn path=/trunk/; revision=48475
2010-08-07 05:02:58 +00:00
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
2010-09-10 09:04:25 +00:00
|
|
|
|
|
|
|
#if DBG
|
2010-09-21 17:14:22 +00:00
|
|
|
DEBUG_CHANNEL(kernel32file);
|
2010-09-10 09:04:25 +00:00
|
|
|
#endif
|
2000-03-14 23:09:23 +00:00
|
|
|
|
2002-12-27 23:50:21 +00:00
|
|
|
/* FUNCTIONS ****************************************************************/
|
2002-09-08 10:23:54 +00:00
|
|
|
|
|
|
|
|
2002-12-27 23:50:21 +00:00
|
|
|
static NTSTATUS
|
|
|
|
CopyLoop (
|
|
|
|
HANDLE FileHandleSource,
|
|
|
|
HANDLE FileHandleDest,
|
|
|
|
LARGE_INTEGER SourceFileSize,
|
|
|
|
LPPROGRESS_ROUTINE lpProgressRoutine,
|
|
|
|
LPVOID lpData,
|
2004-01-23 16:37:11 +00:00
|
|
|
BOOL *pbCancel,
|
|
|
|
BOOL *KeepDest
|
2002-12-27 23:50:21 +00:00
|
|
|
)
|
|
|
|
{
|
|
|
|
NTSTATUS errCode;
|
|
|
|
IO_STATUS_BLOCK IoStatusBlock;
|
|
|
|
UCHAR *lpBuffer = NULL;
|
2005-11-28 23:43:40 +00:00
|
|
|
SIZE_T RegionSize = 0x10000;
|
2002-12-27 23:50:21 +00:00
|
|
|
LARGE_INTEGER BytesCopied;
|
|
|
|
DWORD CallbackReason;
|
|
|
|
DWORD ProgressResult;
|
2004-01-23 16:37:11 +00:00
|
|
|
BOOL EndOfFileFound;
|
2002-12-27 23:50:21 +00:00
|
|
|
|
|
|
|
*KeepDest = FALSE;
|
|
|
|
errCode = NtAllocateVirtualMemory(NtCurrentProcess(),
|
|
|
|
(PVOID *)&lpBuffer,
|
|
|
|
2,
|
|
|
|
&RegionSize,
|
|
|
|
MEM_RESERVE | MEM_COMMIT,
|
|
|
|
PAGE_READWRITE);
|
|
|
|
|
|
|
|
if (NT_SUCCESS(errCode))
|
|
|
|
{
|
|
|
|
BytesCopied.QuadPart = 0;
|
|
|
|
EndOfFileFound = FALSE;
|
2005-05-09 01:46:57 +00:00
|
|
|
CallbackReason = CALLBACK_STREAM_SWITCH;
|
2002-12-27 23:50:21 +00:00
|
|
|
while (! EndOfFileFound &&
|
|
|
|
NT_SUCCESS(errCode) &&
|
|
|
|
(NULL == pbCancel || ! *pbCancel))
|
|
|
|
{
|
|
|
|
if (NULL != lpProgressRoutine)
|
|
|
|
{
|
|
|
|
ProgressResult = (*lpProgressRoutine)(SourceFileSize,
|
|
|
|
BytesCopied,
|
|
|
|
SourceFileSize,
|
|
|
|
BytesCopied,
|
|
|
|
0,
|
|
|
|
CallbackReason,
|
|
|
|
FileHandleSource,
|
|
|
|
FileHandleDest,
|
|
|
|
lpData);
|
|
|
|
switch (ProgressResult)
|
|
|
|
{
|
|
|
|
case PROGRESS_CANCEL:
|
2008-05-12 12:01:51 +00:00
|
|
|
TRACE("Progress callback requested cancel\n");
|
2002-12-27 23:50:21 +00:00
|
|
|
errCode = STATUS_REQUEST_ABORTED;
|
|
|
|
break;
|
|
|
|
case PROGRESS_STOP:
|
2008-05-12 12:01:51 +00:00
|
|
|
TRACE("Progress callback requested stop\n");
|
2002-12-27 23:50:21 +00:00
|
|
|
errCode = STATUS_REQUEST_ABORTED;
|
|
|
|
*KeepDest = TRUE;
|
|
|
|
break;
|
|
|
|
case PROGRESS_QUIET:
|
|
|
|
lpProgressRoutine = NULL;
|
|
|
|
break;
|
|
|
|
case PROGRESS_CONTINUE:
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
CallbackReason = CALLBACK_CHUNK_FINISHED;
|
|
|
|
}
|
|
|
|
if (NT_SUCCESS(errCode))
|
|
|
|
{
|
|
|
|
errCode = NtReadFile(FileHandleSource,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
(PIO_STATUS_BLOCK)&IoStatusBlock,
|
|
|
|
lpBuffer,
|
|
|
|
RegionSize,
|
|
|
|
NULL,
|
|
|
|
NULL);
|
|
|
|
if (NT_SUCCESS(errCode) && (NULL == pbCancel || ! *pbCancel))
|
|
|
|
{
|
|
|
|
errCode = NtWriteFile(FileHandleDest,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
(PIO_STATUS_BLOCK)&IoStatusBlock,
|
|
|
|
lpBuffer,
|
|
|
|
IoStatusBlock.Information,
|
|
|
|
NULL,
|
|
|
|
NULL);
|
|
|
|
if (NT_SUCCESS(errCode))
|
|
|
|
{
|
|
|
|
BytesCopied.QuadPart += IoStatusBlock.Information;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2008-05-12 12:01:51 +00:00
|
|
|
WARN("Error 0x%08x reading writing to dest\n", errCode);
|
2002-12-27 23:50:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!NT_SUCCESS(errCode))
|
|
|
|
{
|
|
|
|
if (STATUS_END_OF_FILE == errCode)
|
|
|
|
{
|
|
|
|
EndOfFileFound = TRUE;
|
|
|
|
errCode = STATUS_SUCCESS;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2008-05-12 12:01:51 +00:00
|
|
|
WARN("Error 0x%08x reading from source\n", errCode);
|
2002-12-27 23:50:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (! EndOfFileFound && (NULL != pbCancel && *pbCancel))
|
|
|
|
{
|
2008-05-12 12:01:51 +00:00
|
|
|
TRACE("User requested cancel\n");
|
2002-12-27 23:50:21 +00:00
|
|
|
errCode = STATUS_REQUEST_ABORTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NtFreeVirtualMemory(NtCurrentProcess(),
|
|
|
|
(PVOID *)&lpBuffer,
|
|
|
|
&RegionSize,
|
|
|
|
MEM_RELEASE);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2008-05-12 12:01:51 +00:00
|
|
|
TRACE("Error 0x%08x allocating buffer of %d bytes\n", errCode, RegionSize);
|
2002-12-27 23:50:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return errCode;
|
|
|
|
}
|
|
|
|
|
|
|
|
static NTSTATUS
|
|
|
|
SetLastWriteTime(
|
|
|
|
HANDLE FileHandle,
|
2005-06-19 22:32:51 +00:00
|
|
|
LARGE_INTEGER LastWriteTime
|
2002-12-27 23:50:21 +00:00
|
|
|
)
|
|
|
|
{
|
|
|
|
NTSTATUS errCode = STATUS_SUCCESS;
|
|
|
|
IO_STATUS_BLOCK IoStatusBlock;
|
|
|
|
FILE_BASIC_INFORMATION FileBasic;
|
|
|
|
|
|
|
|
errCode = NtQueryInformationFile (FileHandle,
|
|
|
|
&IoStatusBlock,
|
|
|
|
&FileBasic,
|
|
|
|
sizeof(FILE_BASIC_INFORMATION),
|
|
|
|
FileBasicInformation);
|
|
|
|
if (!NT_SUCCESS(errCode))
|
|
|
|
{
|
2008-05-12 12:01:51 +00:00
|
|
|
WARN("Error 0x%08x obtaining FileBasicInformation\n", errCode);
|
2002-12-27 23:50:21 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2003-03-16 12:57:32 +00:00
|
|
|
FileBasic.LastWriteTime.QuadPart = LastWriteTime.QuadPart;
|
2002-12-27 23:50:21 +00:00
|
|
|
errCode = NtSetInformationFile (FileHandle,
|
|
|
|
&IoStatusBlock,
|
|
|
|
&FileBasic,
|
|
|
|
sizeof(FILE_BASIC_INFORMATION),
|
|
|
|
FileBasicInformation);
|
|
|
|
if (!NT_SUCCESS(errCode))
|
|
|
|
{
|
2008-05-12 12:01:51 +00:00
|
|
|
WARN("Error 0x%0x setting LastWriteTime\n", errCode);
|
2002-12-27 23:50:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return errCode;
|
|
|
|
}
|
1999-03-19 05:55:55 +00:00
|
|
|
|
2003-07-10 18:50:51 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
2004-01-23 16:37:11 +00:00
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2000-03-14 23:09:23 +00:00
|
|
|
CopyFileExW (
|
|
|
|
LPCWSTR lpExistingFileName,
|
|
|
|
LPCWSTR lpNewFileName,
|
|
|
|
LPPROGRESS_ROUTINE lpProgressRoutine,
|
|
|
|
LPVOID lpData,
|
2004-01-23 16:37:11 +00:00
|
|
|
BOOL *pbCancel,
|
2000-03-14 23:09:23 +00:00
|
|
|
DWORD dwCopyFlags
|
|
|
|
)
|
1999-03-19 05:55:55 +00:00
|
|
|
{
|
2002-12-27 23:50:21 +00:00
|
|
|
NTSTATUS errCode;
|
1999-03-19 05:55:55 +00:00
|
|
|
HANDLE FileHandleSource, FileHandleDest;
|
|
|
|
IO_STATUS_BLOCK IoStatusBlock;
|
|
|
|
FILE_STANDARD_INFORMATION FileStandard;
|
|
|
|
FILE_BASIC_INFORMATION FileBasic;
|
2004-01-23 16:37:11 +00:00
|
|
|
BOOL RC = FALSE;
|
|
|
|
BOOL KeepDestOnError = FALSE;
|
2002-12-27 23:50:21 +00:00
|
|
|
DWORD SystemError;
|
1999-03-19 05:55:55 +00:00
|
|
|
|
2000-03-14 23:09:23 +00:00
|
|
|
FileHandleSource = CreateFileW(lpExistingFileName,
|
|
|
|
GENERIC_READ,
|
2008-05-31 12:48:51 +00:00
|
|
|
FILE_SHARE_READ | FILE_SHARE_WRITE,
|
2000-03-14 23:09:23 +00:00
|
|
|
NULL,
|
|
|
|
OPEN_EXISTING,
|
1999-03-19 05:55:55 +00:00
|
|
|
FILE_ATTRIBUTE_NORMAL|FILE_FLAG_NO_BUFFERING,
|
|
|
|
NULL);
|
2002-12-27 23:50:21 +00:00
|
|
|
if (INVALID_HANDLE_VALUE != FileHandleSource)
|
1999-03-19 05:55:55 +00:00
|
|
|
{
|
2002-12-27 23:50:21 +00:00
|
|
|
errCode = NtQueryInformationFile(FileHandleSource,
|
|
|
|
&IoStatusBlock,
|
|
|
|
&FileStandard,
|
|
|
|
sizeof(FILE_STANDARD_INFORMATION),
|
|
|
|
FileStandardInformation);
|
|
|
|
if (!NT_SUCCESS(errCode))
|
|
|
|
{
|
2008-05-12 12:01:51 +00:00
|
|
|
TRACE("Status 0x%08x obtaining FileStandardInformation for source\n", errCode);
|
2002-12-27 23:50:21 +00:00
|
|
|
SetLastErrorByStatus(errCode);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
errCode = NtQueryInformationFile(FileHandleSource,
|
|
|
|
&IoStatusBlock,&FileBasic,
|
|
|
|
sizeof(FILE_BASIC_INFORMATION),
|
|
|
|
FileBasicInformation);
|
|
|
|
if (!NT_SUCCESS(errCode))
|
|
|
|
{
|
2008-05-12 12:01:51 +00:00
|
|
|
TRACE("Status 0x%08x obtaining FileBasicInformation for source\n", errCode);
|
2002-12-27 23:50:21 +00:00
|
|
|
SetLastErrorByStatus(errCode);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
FileHandleDest = CreateFileW(lpNewFileName,
|
|
|
|
GENERIC_WRITE,
|
|
|
|
FILE_SHARE_WRITE,
|
|
|
|
NULL,
|
|
|
|
dwCopyFlags ? CREATE_NEW : CREATE_ALWAYS,
|
|
|
|
FileBasic.FileAttributes,
|
|
|
|
NULL);
|
|
|
|
if (INVALID_HANDLE_VALUE != FileHandleDest)
|
|
|
|
{
|
|
|
|
errCode = CopyLoop(FileHandleSource,
|
|
|
|
FileHandleDest,
|
|
|
|
FileStandard.EndOfFile,
|
|
|
|
lpProgressRoutine,
|
|
|
|
lpData,
|
|
|
|
pbCancel,
|
|
|
|
&KeepDestOnError);
|
|
|
|
if (!NT_SUCCESS(errCode))
|
|
|
|
{
|
|
|
|
SetLastErrorByStatus(errCode);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2005-06-19 22:32:51 +00:00
|
|
|
LARGE_INTEGER t;
|
2003-03-16 12:57:32 +00:00
|
|
|
|
|
|
|
t.QuadPart = FileBasic.LastWriteTime.QuadPart;
|
|
|
|
errCode = SetLastWriteTime(FileHandleDest, t);
|
2002-12-27 23:50:21 +00:00
|
|
|
if (!NT_SUCCESS(errCode))
|
|
|
|
{
|
|
|
|
SetLastErrorByStatus(errCode);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
RC = TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
NtClose(FileHandleDest);
|
|
|
|
if (! RC && ! KeepDestOnError)
|
|
|
|
{
|
|
|
|
SystemError = GetLastError();
|
|
|
|
SetFileAttributesW(lpNewFileName, FILE_ATTRIBUTE_NORMAL);
|
|
|
|
DeleteFileW(lpNewFileName);
|
|
|
|
SetLastError(SystemError);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2008-05-12 12:01:51 +00:00
|
|
|
WARN("Error %d during opening of dest file\n", GetLastError());
|
2002-12-27 23:50:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
1999-03-19 05:55:55 +00:00
|
|
|
NtClose(FileHandleSource);
|
2000-03-14 23:09:23 +00:00
|
|
|
}
|
2002-12-27 23:50:21 +00:00
|
|
|
else
|
1999-03-19 05:55:55 +00:00
|
|
|
{
|
2008-05-12 12:01:51 +00:00
|
|
|
WARN("Error %d during opening of source file\n", GetLastError());
|
2000-03-14 23:09:23 +00:00
|
|
|
}
|
|
|
|
|
2002-12-27 23:50:21 +00:00
|
|
|
return RC;
|
1999-03-19 05:55:55 +00:00
|
|
|
}
|
|
|
|
|
2000-03-14 23:09:23 +00:00
|
|
|
|
2003-07-10 18:50:51 +00:00
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
2004-01-23 16:37:11 +00:00
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2011-02-22 19:07:45 +00:00
|
|
|
CopyFileExA(IN LPCSTR lpExistingFileName,
|
|
|
|
IN LPCSTR lpNewFileName,
|
|
|
|
IN LPPROGRESS_ROUTINE lpProgressRoutine OPTIONAL,
|
|
|
|
IN LPVOID lpData OPTIONAL,
|
|
|
|
IN LPBOOL pbCancel OPTIONAL,
|
|
|
|
IN DWORD dwCopyFlags)
|
1999-03-19 05:55:55 +00:00
|
|
|
{
|
2011-02-22 19:07:45 +00:00
|
|
|
BOOL Result = FALSE;
|
|
|
|
UNICODE_STRING lpNewFileNameW;
|
|
|
|
PUNICODE_STRING lpExistingFileNameW;
|
|
|
|
|
|
|
|
lpExistingFileNameW = Basep8BitStringToStaticUnicodeString(lpExistingFileName);
|
|
|
|
if (!lpExistingFileName)
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Basep8BitStringToDynamicUnicodeString(&lpNewFileNameW, lpNewFileName))
|
|
|
|
{
|
|
|
|
Result = CopyFileExW(lpExistingFileNameW->Buffer,
|
|
|
|
lpNewFileNameW.Buffer,
|
|
|
|
lpProgressRoutine,
|
|
|
|
lpData,
|
|
|
|
pbCancel,
|
|
|
|
dwCopyFlags);
|
|
|
|
|
|
|
|
RtlFreeUnicodeString(&lpNewFileNameW);
|
|
|
|
}
|
|
|
|
|
|
|
|
return Result;
|
1999-03-19 05:55:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-07-10 18:50:51 +00:00
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
2004-01-23 16:37:11 +00:00
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2000-03-14 23:09:23 +00:00
|
|
|
CopyFileA (
|
|
|
|
LPCSTR lpExistingFileName,
|
|
|
|
LPCSTR lpNewFileName,
|
2004-01-23 16:37:11 +00:00
|
|
|
BOOL bFailIfExists
|
2000-03-14 23:09:23 +00:00
|
|
|
)
|
1999-03-19 05:55:55 +00:00
|
|
|
{
|
2000-03-14 23:09:23 +00:00
|
|
|
return CopyFileExA (lpExistingFileName,
|
|
|
|
lpNewFileName,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
bFailIfExists);
|
1999-03-19 05:55:55 +00:00
|
|
|
}
|
2000-03-14 23:09:23 +00:00
|
|
|
|
|
|
|
|
2003-07-10 18:50:51 +00:00
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
2004-01-23 16:37:11 +00:00
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2000-03-14 23:09:23 +00:00
|
|
|
CopyFileW (
|
|
|
|
LPCWSTR lpExistingFileName,
|
|
|
|
LPCWSTR lpNewFileName,
|
2004-01-23 16:37:11 +00:00
|
|
|
BOOL bFailIfExists
|
2000-03-14 23:09:23 +00:00
|
|
|
)
|
1999-03-19 05:55:55 +00:00
|
|
|
{
|
2000-03-14 23:09:23 +00:00
|
|
|
return CopyFileExW (lpExistingFileName,
|
|
|
|
lpNewFileName,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
bFailIfExists);
|
1999-03-19 05:55:55 +00:00
|
|
|
}
|
2000-03-14 23:09:23 +00:00
|
|
|
|
2005-09-29 02:26:33 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
BOOL
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2005-09-29 02:26:33 +00:00
|
|
|
PrivCopyFileExW (
|
|
|
|
LPCWSTR lpExistingFileName,
|
|
|
|
LPCWSTR lpNewFileName,
|
|
|
|
LPPROGRESS_ROUTINE lpProgressRoutine,
|
|
|
|
LPVOID lpData,
|
|
|
|
BOOL *pbCancel,
|
|
|
|
DWORD dwCopyFlags
|
|
|
|
)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2000-03-14 23:09:23 +00:00
|
|
|
/* EOF */
|