Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FILE_RENAME_INFO structure

Contains the name to which the file should be renamed. Use only when calling SetFileInformationByHandle.

Syntax


typedef struct _FILE_RENAME_INFO {
  BOOL   ReplaceIfExists;
  HANDLE RootDirectory;
  DWORD  FileNameLength;
  WCHAR  FileName[1];
} FILE_RENAME_INFO, *PFILE_RENAME_INFO;

Members

ReplaceIfExists

TRUE to replace the file; otherwise, FALSE.

RootDirectory

A handle to the root directory in which the file to be renamed is located.

FileNameLength

The size of FileName in bytes.

FileName

The new file name.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Redistributable

Windows SDK on Windows Server 2003 and Windows XP.

Header

WinBase.h (include Windows.h);
FileExtd.h on Windows Server 2003 and Windows XP

See also

FILE_INFO_BY_HANDLE_CLASS
SetFileInformationByHandle

 

 

Show:
© 2017 Microsoft