Undocumented functions of NTDLL

2OO1, 13 March



FILE_NAME_INFORMATION
FILE_NAME_INFORMATION

typedef struct _FILE_NAME_INFORMATION {

ULONG FileNameLength; WCHAR FileName[1];

} FILE_NAME_INFORMATION, *PFILE_NAME_INFORMATION;



Structure FILE_NAME_INFORMATION contains name of queried file object. It's used as a result of call NtQueryInformationFile with FileNameInformation or FileAlternateNameInformation information class.



  • FileNameLength
  •     Length of FileName, in bytes.
  • FileName[1]
  •     UNICODE name of file. If caller query about FileNameInformation, FileName additionally contains path to file, and begins with '/' (full path to file relative to device).


    Documented by:
    Tomasz Nowak
    Bo Branten



    Requirements:
    Library: ntdll.lib


    See also:
    FILE_ALL_INFORMATION
    FILE_INFORMATION_CLASS
    NtQueryInformationFile