Undocumented functions of NTDLL

2OO1, 5 April


Gridstore - NonStop Storage

FILE_LINK_INFORMATION
FILE_LINK_INFORMATION

typedef struct _FILE_LINK_INFORMATION {

BOOLEAN ReplaceIfExists; HANDLE RootDirectory; ULONG FileNameLength; WCHAR FileName[1];

} FILE_LINK_INFORMATION, *PFILE_LINK_INFORMATION;



Structure FILE_LINK_INFORMATION is used as input buffer for function NtSetInformationFile called with FileLinkInformation information class for make hard link to file.
  On standart 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 specyfing 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 specyfing name of link and optionally with path (see description of RootDirectory).


    Documented by:
    Tomasz Nowak
    Bo Branten



    Requirements:
    Library: ntdll.lib


    See also:
    FILE_INFORMATION_CLASS
    FILE_RENAME_INFORMATION
    NtSetInformationFile