Function:
CopyFile(LPCSTRlpExistingFileName,LPCSTRlpNewFileName,BOOLbFailIfExists)
|
Description:
Copies a file from one location to another, just like copying
a file in Windows Explorer or in some other way.
|
Parameters:
lpExistingFileName: The source file.
lpNewFileName: The target file.
bFailIfExists: If 0, the function will overwrite lpNewFileName if it already
exists.
|
Returns:
Returns 1 if successful, or 0 if an error occurred.
|
Example: 
Click on the calc icon to view a sample of the CopyFile
function.
|