###User Defined Function###
_WinAPI_CopyFileEx

###Description###
Copies an existing file to a new file, notifying the application of its progress through a callback function

###Syntax###
#include <WinAPIFiles.au3>
_WinAPI_CopyFileEx ( $sExistingFile, $sNewFile [, $iFlags = 0 [, $pProgressProc = 0 [, $pData = 0]]] )


###Parameters###
@@ParamTable@@
$sExistingFile
	The name of an existing file.
$sNewFile
	The name of the new file.
$iFlags
	[optional] The flags that specify how the file is to be copied. This parameter can be a combination of the following values:
		$COPY_FILE_ALLOW_DECRYPTED_DESTINATION (0x0008)
		$COPY_FILE_COPY_SYMLINK (0x0800)
		$COPY_FILE_FAIL_IF_EXISTS (0x0001)
		$COPY_FILE_NO_BUFFERING (0x1000)
		$COPY_FILE_OPEN_SOURCE_FOR_WRITE (0x0004)
		$COPY_FILE_RESTARTABLE (0x0002)
$pProgressProc
	[optional] The address of a callback function that is called each time another portion of the file has been copied.
	(See MSDN for more information)
$pData
	[optional] The argument to be passed to the callback function.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	True.
Failure:	False, call <a href="_WinAPI_GetLastError.htm">_WinAPI_GetLastError()</a> to get extended error information
@@End@@


###Remarks###
$COPY_* , $PROGRESS_*  constants require #include <APIFilesConstants.au3>


###Related###
None.


###See Also###
@@MsdnLink@@ CopyFileEx


###Example###
@@IncludeExample@@
