PFILE_LINK_INFORMATION Struct Reference

Used to create an NTFS hard link to an existing file. More...

#include <fileinfo.h>

Data Fields

BOOLEAN ReplaceIfExists
 
HANDLE RootDirectory
 
ULONG FileNameLength
 
WCHAR FileName [1]
 

Detailed Description

Used to create an NTFS hard link to an existing file.

The struct is requested during IRP_MJ_SET_INFORMATION with query FileLinkInformation

Field Documentation

WCHAR PFILE_LINK_INFORMATION::FileName[1]

The first character of the name to be assigned to the newly created link. This is followed in memory by the remainder of the string. If the RootDirectory member is NULL and the link is to be created in a different directory from the file that is being linked to, this member specifies the full pathname for the link to be created. Otherwise, it specifies only the file name. (See the Remarks section for ZwQueryInformationFile for details on the syntax of this file name string.)

ULONG PFILE_LINK_INFORMATION::FileNameLength

Length, in bytes, of the file name string.

BOOLEAN PFILE_LINK_INFORMATION::ReplaceIfExists

Set to TRUE to specify that if the link already exists, it should be replaced with the new link. Set to FALSE if the link creation operation should fail if the link already exists.

HANDLE PFILE_LINK_INFORMATION::RootDirectory

If the link is to be created in the same directory as the file that is being linked to, or if the FileName member contains the full pathname for the link to be created, this is NULL. Otherwise it is a handle for the directory where the link is to be created.


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