Export (0) Print
Expand All
Expand Minimize

CeCopyFile (RAPI)

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function copies an existing file on a remote Windows Embedded CE–based device to a new file on the remote device.


BOOL CeCopyFile(
  LPCWSTR lpExistingFileName, 
  LPCWSTR lpNewFileName, 
  BOOL bFailIfExists 
);

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 function fails. If bFailIfExists is FALSE and the new file already exists, the function overwrites the existing file and succeeds.

Nonzero indicates success. Zero indicates failure. To get extended error information, call CeGetLastError and CeRapiGetError.

Headerrapi.h
Libraryrapi.lib
Windows Embedded CEWindows CE 3.0 and later
Windows MobilePocket PC 2000 and later, Smartphone 2002 and later

Community Additions

ADD
Show:
© 2014 Microsoft