#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;
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).
If set, and destination object already exists, it will be replaced with newly created link.
HANDLE
to File Object specifying directory where link should be placed. Can be NULL if FileName
parameter contains full path.
Length of FileName
array, in bytes.
UNICODE string specifying name of link and optionally with path (see description of RootDirectory
).