This function deletes the source file (lpszSourFile) after it copies the content of the source file to the destination file (lpszDestFile).
At a Glance
Header file: | Winbase.h |
Windows CE versions: | 1.01 and later |
Syntax
BOOL DeleteAndRenameFile( LPCWSTR lpszDestFile,
LPCWSTR lpszSourFile );
Parameters
lpszDestFile
[in] Pointer to the null-terminated string that contains the path to the destination file, and cannot be NULL.
lpszSourFile
[in] Pointer to the null-terminated string that contains the path to the source file, and cannot be NULL.
Return Values
TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError.
Remarks
The DeleteAndRenameFile function works for the object store RAM-based file system only.