Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DeleteAndRenameFile

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

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 
);
lpszDestFile

[in] Pointer to a null-terminated string that contains the path of the destination file. This parameter cannot be set to NULL.

lpszSourceFile

[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.

Headerwinbase.h
Librarycoredll.lib
Windows Embedded CEWindows CE 1.01 and later
Windows MobileWindows Mobile Version 5.0 and later
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.