This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Contains the target name to which the source file should be renamed. Use only when callingSetFileInformationByHandle.
typedef struct _FILE_RENAME_INFO { union { BOOLEAN ReplaceIfExists; DWORD Flags; } DUMMYUNIONNAME; BOOLEAN ReplaceIfExists; HANDLE RootDirectory; DWORD FileNameLength; WCHAR FileName[1];} FILE_RENAME_INFO, *PFILE_RENAME_INFO;
DUMMYUNIONNAME
DUMMYUNIONNAME.ReplaceIfExists
This field is used whenSetFileInformationByHandle'sFileInformationClass parameter is set toFileRenameInfo.If this field isTRUE and the target file exists then the target file will be replaced by the source file. If thisfield isFALSE and the target file exists then operation will return an error.
DUMMYUNIONNAME.Flags
This field is used whenSetFileInformationByHandle'sFileInformationClass parameter is set toFileRenameInfoEx.
ReplaceIfExists
RootDirectory
This field should be set to NULL.
FileNameLength
The size ofFileName in bytes, not including the NUL-termination.
FileName[1]
A NUL-terminated wide-character string containing the new path to the file. The value can be one of the following:
:
.Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Header | winbase.h (include Windows.h) |
Redistributable | Windows SDK on Windows Server 2003 and Windows XP. |
Was this page helpful?
Was this page helpful?