Compartilhar via


DeleteAndRenameFile (Windows CE 5.0)

Send Feedback

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 exist before calling this function.

BOOL DeleteAndRenameFile( LPCWSTRlpszDestFile,LPCWSTRlpszSourceFile );

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.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.