FILE_LINK_INFORMATION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTIOAPI_H

typedef struct _FILE_LINK_INFORMATION
{
    BOOLEAN ReplaceIfExists;
    HANDLE RootDirectory;
    ULONG FileNameLength;
    _Field_size_bytes_(FileNameLength) WCHAR FileName[1];
} FILE_LINK_INFORMATION, *PFILE_LINK_INFORMATION;

#endif

View code on GitHub

This structure is documented in Windows Driver Kit.


Structure FILE_LINK_INFORMATION is used as input buffer for function NtSetInformationFile called with FileLinkInformation information class for make hard link to file.

On standard NT system only links to files are accepted. Caller cannot create link to directory (for Poxis compatibility reason).

ReplaceIfExists

If set, and destination object already exists, it will be replaced with newly created link.

RootDirectory

HANDLE to File Object specifying directory where link should be placed. Can be NULL if FileName parameter contains full path.

FileNameLength

Length of FileName array, in bytes.

FileName[1]

UNICODE string specifying name of link and optionally with path (see description of RootDirectory).

Documented by

See also