DeleteAndRenameFile
This function deletes the source file (lpszSourFile) after it copies the content of the source file to the destination file (lpszDestFile). Create the source file and the destination file before calling this function.
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.
If this function fails, both the source file and destination file are unchanged.
Requirements
Runs On | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 1.01 and later | Winbase.h | Coredll.lib, Fsmain.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.