PFILE_RENAME_INFORMATION Struct Reference

Used to rename a file. More...

#include <fileinfo.h>

Data Fields

BOOLEAN ReplaceIfExists
 
HANDLE RootDirectory
 
ULONG FileNameLength
 
WCHAR FileName [1]
 

Detailed Description

Used to rename a file.

The struct is requested during IRP_MJ_SET_INFORMATION with query FileRenameInformation

Field Documentation

WCHAR PFILE_RENAME_INFORMATION::FileName[1]

The first character of a wide-character string containing the new name for the file. This is followed in memory by the remainder of the string. If the RootDirectory member is NULL, and the file is being moved to a different directory, this member specifies the full pathname to be assigned to the file. Otherwise, it specifies only the file name or a relative pathname.

ULONG PFILE_RENAME_INFORMATION::FileNameLength

Length, in bytes, of the new name for the file.

BOOLEAN PFILE_RENAME_INFORMATION::ReplaceIfExists

Set to TRUE to specify that if a file with the given name already exists, it should be replaced with the given file. Set to FALSE if the rename operation should fail if a file with the given name already exists.

HANDLE PFILE_RENAME_INFORMATION::RootDirectory

If the file is not being moved to a different directory, or if the FileName member contains the full pathname, this member is NULL. Otherwise, it is a handle for the root directory under which the file will reside after it is renamed.


The documentation for this struct was generated from the following file: