DeleteAndRenameFile

Windows CE .NET

This function deletes the source file after it copies the content of the source file to the destination file. The source file and the destination file must exit before calling this function.

BOOL DeleteAndRenameFile( 
  LPCWSTR lpszDestFile, 
  LPCWSTR lpszSourceFile 
);

Parameters

lpszDestFile
[in] Pointer to the null-terminated string that contains the path to the destination file, and cannot be NULL.
lpszSourceFile
[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

OS Versions: Windows CE 1.01 and later.
Header: Winbase.h.
Link Library: Coredll.lib.


 Last updated on Friday, April 09, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.

Show: