IRAPISession::CeCopyFile
This method copies an existing file on a remote Microsoft® Windows® CE–based device to a new file on the remote device.
BOOL CeCopyFile(
LPCWSTR lpExistingFileName,
LPCWSTR lpNewFileName,
BOOL bFailIfExists
);
Parameters
- lpExistingFileName
[in] Long pointer to a null-terminated string that specifies the name of an existing file. - lpNewFileName
[in] Long pointer to a null-terminated string that specifies the name of the new file. - bFailIfExists
[in] Boolean value that specifies how this operation is to proceed if a file of the same name as that indicated by lpNewFileName already exists. If bFailIfExists is TRUE and the new file already exists, the method will fail. If bFailIfExists is FALSE and the new file already exists, the method will overwrite the existing file and succeed.
Return Values
Nonzero indicates success. Zero indicates failure. To get extended error information, call IRAPISession::CeGetLastError and IRAPISession::CeRapiGetError.
Requirements
OS Versions: Windows CE 5.01 and later.
Header: Rapi2.h.
Link Library: Ole32.lib, Rapiuuid.lib.
See Also
Send Feedback on this topic to the authors