The DeleteAndRenameFile function deletes the source file (lpszSourFile) after it copies the content of the source file to the destination file (lpszDestFile).
BOOL DeleteAndRenameFile(LPCWSTR lpszDestFile, LPCWSTR lpszSourFile);
Header file: | Winbase.h |
Component: | Fsysram |
Platforms: | H/PC |
Windows CE versions: | 1.01 and later |
The DeleteAndRenameFile function works for the RAM-based file system only. If the function fails it returns FALSE. Call GetLastError to get detailed error messages.