FILE_INFORMATION_CLASS enumeration (wdm.h)

A FILE_INFORMATION_CLASS value specifies which structure to use to query or set information for a file object.

Syntax

typedef enum _FILE_INFORMATION_CLASS {
  FileDirectoryInformation = 1,
  FileFullDirectoryInformation = 2,
  FileBothDirectoryInformation = 3,
  FileBasicInformation = 4,
  FileStandardInformation = 5,
  FileInternalInformation = 6,
  FileEaInformation = 7,
  FileAccessInformation = 8,
  FileNameInformation = 9,
  FileRenameInformation = 10,
  FileLinkInformation = 11,
  FileNamesInformation = 12,
  FileDispositionInformation = 13,
  FilePositionInformation = 14,
  FileFullEaInformation = 15,
  FileModeInformation = 16,
  FileAlignmentInformation = 17,
  FileAllInformation = 18,
  FileAllocationInformation = 19,
  FileEndOfFileInformation = 20,
  FileAlternateNameInformation = 21,
  FileStreamInformation = 22,
  FilePipeInformation = 23,
  FilePipeLocalInformation = 24,
  FilePipeRemoteInformation = 25,
  FileMailslotQueryInformation = 26,
  FileMailslotSetInformation = 27,
  FileCompressionInformation = 28,
  FileObjectIdInformation = 29,
  FileCompletionInformation = 30,
  FileMoveClusterInformation = 31,
  FileQuotaInformation = 32,
  FileReparsePointInformation = 33,
  FileNetworkOpenInformation = 34,
  FileAttributeTagInformation = 35,
  FileTrackingInformation = 36,
  FileIdBothDirectoryInformation = 37,
  FileIdFullDirectoryInformation = 38,
  FileValidDataLengthInformation = 39,
  FileShortNameInformation = 40,
  FileIoCompletionNotificationInformation = 41,
  FileIoStatusBlockRangeInformation = 42,
  FileIoPriorityHintInformation = 43,
  FileSfioReserveInformation = 44,
  FileSfioVolumeInformation = 45,
  FileHardLinkInformation = 46,
  FileProcessIdsUsingFileInformation = 47,
  FileNormalizedNameInformation = 48,
  FileNetworkPhysicalNameInformation = 49,
  FileIdGlobalTxDirectoryInformation = 50,
  FileIsRemoteDeviceInformation = 51,
  FileUnusedInformation = 52,
  FileNumaNodeInformation = 53,
  FileStandardLinkInformation = 54,
  FileRemoteProtocolInformation = 55,
  FileRenameInformationBypassAccessCheck = 56,
  FileLinkInformationBypassAccessCheck = 57,
  FileVolumeNameInformation = 58,
  FileIdInformation = 59,
  FileIdExtdDirectoryInformation = 60,
  FileReplaceCompletionInformation = 61,
  FileHardLinkFullIdInformation = 62,
  FileIdExtdBothDirectoryInformation = 63,
  FileDispositionInformationEx = 64,
  FileRenameInformationEx = 65,
  FileRenameInformationExBypassAccessCheck = 66,
  FileDesiredStorageClassInformation = 67,
  FileStatInformation = 68,
  FileMemoryPartitionInformation = 69,
  FileStatLxInformation = 70,
  FileCaseSensitiveInformation = 71,
  FileLinkInformationEx = 72,
  FileLinkInformationExBypassAccessCheck = 73,
  FileStorageReserveIdInformation = 74,
  FileCaseSensitiveInformationForceAccessCheck = 75,
  FileKnownFolderInformation = 76,
  FileStatBasicInformation = 77,
  FileId64ExtdDirectoryInformation = 78,
  FileId64ExtdBothDirectoryInformation = 79,
  FileIdAllExtdDirectoryInformation = 80,
  FileIdAllExtdBothDirectoryInformation = 81,
  FileStreamReservationInformation,
  FileMupProviderInfo,
  FileMaximumInformation
} FILE_INFORMATION_CLASS, *PFILE_INFORMATION_CLASS;

Constants

 
FileDirectoryInformation
Value: 1
A FILE_DIRECTORY_INFORMATION structure.
FileFullDirectoryInformation
Value: 2
A FILE_FULL_DIR_INFORMATION structure.
FileBothDirectoryInformation
Value: 3
A FILE_BOTH_DIR_INFORMATION structure.
FileBasicInformation
Value: 4
A FILE_BASIC_INFORMATION structure.
FileStandardInformation
Value: 5
A FILE_STANDARD_INFORMATION structure.
FileInternalInformation
Value: 6
A FILE_INTERNAL_INFORMATION structure.
FileEaInformation
Value: 7
A FILE_EA_INFORMATION structure.
FileAccessInformation
Value: 8
A FILE_ACCESS_INFORMATION structure.
FileNameInformation
Value: 9
A FILE_NAME_INFORMATION structure.
FileRenameInformation
Value: 10
A FILE_RENAME_INFORMATION structure.
FileLinkInformation
Value: 11
A FILE_LINK_INFORMATION structure.
FileNamesInformation
Value: 12
A FILE_NAMES_INFORMATION structure.
FileDispositionInformation
Value: 13
A FILE_DISPOSITION_INFORMATION structure.
FilePositionInformation
Value: 14
A FILE_POSITION_INFORMATION structure.
FileFullEaInformation
Value: 15
A FILE_FULL_EA_INFORMATION structure.
FileModeInformation
Value: 16
A FILE_MODE_INFORMATION structure.
FileAlignmentInformation
Value: 17
A FILE_ALIGNMENT_INFORMATION structure.
FileAllInformation
Value: 18
A FILE_ALL_INFORMATION structure.
FileAllocationInformation
Value: 19
A FILE_ALLOCATION_INFORMATION structure.
FileEndOfFileInformation
Value: 20
A FILE_END_OF_FILE_INFORMATION structure.
FileAlternateNameInformation
Value: 21
A FILE_NAME_INFORMATION structure.
FileStreamInformation
Value: 22
A message buffer that contains one or more FILE_STREAM_INFORMATION structures.
FilePipeInformation
Value: 23
A FILE_PIPE_INFORMATION structure.
FilePipeLocalInformation
Value: 24
A FILE_PIPE_LOCAL_INFORMATION structure.
FilePipeRemoteInformation
Value: 25
A FILE_PIPE_REMOTE_INFORMATION structure.
FileMailslotQueryInformation
Value: 26
A FILE_MAILSLOT_QUERY_INFORMATION structure.
FileMailslotSetInformation
Value: 27
A FILE_MAILSLOT_SET_INFORMATION structure.
FileCompressionInformation
Value: 28
A FILE_COMPRESSION_INFORMATION structure.
FileObjectIdInformation
Value: 29
A FILE_OBJECTID_INFORMATION structure.
FileCompletionInformation
Value: 30
This value is reserved for system use.
FileMoveClusterInformation
Value: 31
This value is reserved for system use.
FileQuotaInformation
Value: 32
A FILE_QUOTA_INFORMATION structure.
FileReparsePointInformation
Value: 33
A FILE_REPARSE_POINT_INFORMATION structure.
FileNetworkOpenInformation
Value: 34
A FILE_NETWORK_OPEN_INFORMATION structure.
FileAttributeTagInformation
Value: 35
A FILE_ATTRIBUTE_TAG_INFORMATION structure.
FileTrackingInformation
Value: 36
This value is reserved for system use.
FileIdBothDirectoryInformation
Value: 37
A FILE_ID_BOTH_DIR_INFORMATION structure.
FileIdFullDirectoryInformation
Value: 38
A FILE_ID_FULL_DIR_INFORMATION structure.
FileValidDataLengthInformation
Value: 39
A FILE_VALID_DATA_LENGTH_INFORMATION structure.
FileShortNameInformation
Value: 40
A FILE_NAME_INFORMATION structure.
FileIoCompletionNotificationInformation
Value: 41
This value is reserved for system use. This value is available starting with Windows Vista.
FileIoStatusBlockRangeInformation
Value: 42
This value is reserved for system use. This value is available starting with Windows Vista.
FileIoPriorityHintInformation
Value: 43
A FILE_IO_PRIORITY_HINT_INFORMATION structure. This value is available starting with Windows Vista.
FileSfioReserveInformation
Value: 44
This value is reserved for system use. This value is available starting with Windows Vista.
FileSfioVolumeInformation
Value: 45
This value is reserved for system use. This value is available starting with Windows Vista.
FileHardLinkInformation
Value: 46
A FILE_LINKS_INFORMATION structure. This value is available starting with Windows Vista.
FileProcessIdsUsingFileInformation
Value: 47
A FILE_PROCESS_IDS_USING_FILE_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows Vista.
FileNormalizedNameInformation
Value: 48
A FILE_NAME_INFORMATION structure. This value is defined starting with Windows Vista. It is supported starting with Windows 8.
FileNetworkPhysicalNameInformation
Value: 49
A FILE_NETWORK_PHYSICAL_NAME_INFORMATION structure. This value is available starting with Windows Vista.
FileIdGlobalTxDirectoryInformation
Value: 50
A FILE_ID_GLOBAL_TX_DIR_INFORMATION structure. This value is available starting with Windows 7.
FileIsRemoteDeviceInformation
Value: 51
A FILE_IS_REMOTE_DEVICE_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 7.
FileUnusedInformation
Value: 52
This value is reserved for system use. This value is available starting with Windows 7.
FileNumaNodeInformation
Value: 53
A FILE_NUMA_NODE_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 7.
FileStandardLinkInformation
Value: 54
A FILE_STANDARD_LINK_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 7.
FileRemoteProtocolInformation
Value: 55
A FILE_REMOTE_PROTOCOL_INFORMATION structure. This value is available starting with Windows 7.
FileRenameInformationBypassAccessCheck
Value: 56
A FILE_RENAME_INFORMATION structure. This is a special version of the FileRenameInformation operation that is used by kernel-mode drivers only in order to bypass security access checks. This operation is only recognized by the IOManager and a file system should never receive it. This value is available starting with Windows 10.
FileLinkInformationBypassAccessCheck
Value: 57
A FILE_LINK_INFORMATION structure. This is a special version of the FileLinkInformation operation that is used by kernel-mode drivers only in order to bypass security access checks. This operation is only recognized by the IOManager and a file system should never receive it. This value is available starting with Windows 10.
FileVolumeNameInformation
Value: 58
A FILE_VOLUME_NAME_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 10.
FileIdInformation
Value: 59
A FILE_ID_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 10.
FileIdExtdDirectoryInformation
Value: 60
A FILE_ID_EXTD_DIR_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 10.
FileReplaceCompletionInformation
Value: 61
A FILE_COMPLETION_INFORMATION structure to change or remove the completion port associated with a file handle. This value is available starting with Windows 8.1.
FileHardLinkFullIdInformation
Value: 62
A FILE_LINKS_FULL_ID_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 10.
FileIdExtdBothDirectoryInformation
Value: 63
A FILE_ID_EXTD_BOTH_DIR_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 10.
FileDispositionInformationEx
Value: 64
A FILE_DISPOSITION_INFORMATION_EX structure that indicates how the operating system should delete a file. This value is available starting with Windows 10, version 1709.
FileRenameInformationEx
Value: 65
A FILE_RENAME_INFORMATION structure which contains additional flags. This value is available starting with Windows 10, version 1709.
FileRenameInformationExBypassAccessCheck
Value: 66
A FILE_RENAME_INFORMATION structure which contains additional flags. This value is available starting with Windows 10, version 1709. This is a special version of the FileRenameInformation operation that is used by kernel-mode drivers only in order to bypass security access checks. This operation is only recognized by the IOManager and a file system should never receive it.
FileDesiredStorageClassInformation
Value: 67
A FILE_DESIRED_STORAGE_CLASS_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 10, version 1709.
FileStatInformation
Value: 68
A FILE_STAT_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 10, version 1709.
FileMemoryPartitionInformation
Value: 69
Reserved. This value is available starting with Windows 10, version 1709.
FileStatLxInformation
Value: 70
A FILE_STAT_LX_INFORMATION structure, declared in ntifs.h. This information class is used for fields refer to Linux metadata used/created by the Windows Subsystem for Linux. This value is available starting with Windows 10 April 2018 Update.
FileCaseSensitiveInformation
Value: 71
A FILE_CASE_SENSITIVE_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 10 April 2018 Update.
FileLinkInformationEx
Value: 72
A FILE_LINK_INFORMATION structure which contains additional flags. This value is available starting with Windows 10, version 1809.
FileLinkInformationExBypassAccessCheck
Value: 73
A FILE_LINK_INFORMATION structure which contains additional flags. This is a special version of the FileLinkInformation operation that is used by kernel-mode drivers only in order to bypass security access checks. This operation is only recognized by the IOManager and a file system should never receive it. This value is available starting with Windows 10, version 1809.
FileStorageReserveIdInformation
Value: 74
A FILE_SET_STORAGE_RESERVE_ID_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 10, version 1809.
FileCaseSensitiveInformationForceAccessCheck
Value: 75
A FILE_CASE_SENSITIVE_INFORMATION structure, declared in ntifs.h. This is a special version of the FileCaseSensitiveInformation operation that is used to force the IOManager to perform access checks for the kernel-mode driver, similar to the checks that apply to a user-mode caller. This operation is only recognized by the IOManager and a file system should never receive it. This value is available starting with Windows 10, version 1809.
FileKnownFolderInformation
Value: 76
A FILE_KNOWN_FOLDER_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows Server 2022.
FileStatBasicInformation
Value: 77
A FILE_STAT_BASIC_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 11, build 26048.
FileId64ExtdDirectoryInformation
Value: 78
A FILE_ID_64_EXTD_DIR_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 11, version 23H2.
FileId64ExtdBothDirectoryInformation
Value: 79
A FILE_ID_64_EXTD_BOTH_DIR_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 11, version 23H2.
FileIdAllExtdDirectoryInformation
Value: 80
A FILE_ID_ALL_EXTD_DIR_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 11, version 23H2.
FileIdAllExtdBothDirectoryInformation
Value: 81
A FILE_ID_ALL_EXTD_BOTH_DIR_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 11, version 23H2.
FileMaximumInformation
Maximum value of this enumeration. This value is available starting with Windows 7.

Requirements

Requirement Value
Header wdm.h (include FltKernel.h, Ntifs.h)