|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
This function deletes a file after copying its contents to the destination file. The source file and the destination file must already exist.
BOOL DeleteAndRenameFile( LPCWSTR lpszDestFile, LPCWSTR lpszSourceFile );
[in] Pointer to a null-terminated string that contains the path of the destination file. This parameter cannot be set to NULL.
[in] Pointer to a null-terminated string that contains the path of the source file. This parameter cannot be set to NULL.
TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError.
This function works for the object store RAM-based file system only.
If this function fails, both the source file and destination file are unchanged.
|Windows Embedded CE||Windows CE 1.01 and later|
|Windows Mobile||Windows Mobile Version 5.0 and later|