

When renaming a file to a new directory, suppress any inheritance rules related to the FILE_ATTRIBUTE_PINNED and FILE_ATTRIBUTE_UNPINNED attributes of the file.įILE_RENAME_SUPPRESS_STORAGE_RESERVE_INHERITANCE (0x00000008) Any subsequent opens of the target name will open the renamed file, not the replaced file.įILE_RENAME_SUPPRESS_PIN_STATE_INHERITANCE (0x00000004) Existing handles to the replaced file continue to be valid for operations such as read and write. If FILE_RENAME_REPLACE_IF_EXISTS is also specified, allow replacing a file even if there are existing handles to it. Equivalent to the ReplaceIfExists field used with the FileRenameInformation information class. If a file with the given name already exists, it should be replaced with the given file.

This field is only applicable when used with the FileRenameInformationEx information class.įILE_RENAME_REPLACE_IF_EXISTS (0x00000001) Set to FALSE if the rename operation should fail if a file with the given name already exists.įlags for the rename operation. Set to TRUE to specify that if a file with the given name already exists, it should be replaced with the given file. Syntax typedef struct _FILE_RENAME_INFORMATION FILE_RENAME_INFORMATION, *PFILE_RENAME_INFORMATION The FILE_RENAME_INFORMATION structure is used to rename a file.
