Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
FileDirectoryInformationValue: 1 A FILE_DIRECTORY_INFORMATION structure. |
FileFullDirectoryInformationValue: 2 A FILE_FULL_DIR_INFORMATION structure. |
FileBothDirectoryInformationValue: 3 A FILE_BOTH_DIR_INFORMATION structure. |
FileBasicInformationValue: 4 A FILE_BASIC_INFORMATION structure. |
FileStandardInformationValue: 5 A FILE_STANDARD_INFORMATION structure. |
FileInternalInformationValue: 6 A FILE_INTERNAL_INFORMATION structure. |
FileEaInformationValue: 7 A FILE_EA_INFORMATION structure. |
FileAccessInformationValue: 8 A FILE_ACCESS_INFORMATION structure. |
FileNameInformationValue: 9 A FILE_NAME_INFORMATION structure. |
FileRenameInformationValue: 10 A FILE_RENAME_INFORMATION structure. |
FileLinkInformationValue: 11 A FILE_LINK_INFORMATION structure. |
FileNamesInformationValue: 12 A FILE_NAMES_INFORMATION structure. |
FileDispositionInformationValue: 13 A FILE_DISPOSITION_INFORMATION structure. |
FilePositionInformationValue: 14 A FILE_POSITION_INFORMATION structure. |
FileFullEaInformationValue: 15 A FILE_FULL_EA_INFORMATION structure. |
FileModeInformationValue: 16 A FILE_MODE_INFORMATION structure. |
FileAlignmentInformationValue: 17 A FILE_ALIGNMENT_INFORMATION structure. |
FileAllInformationValue: 18 A FILE_ALL_INFORMATION structure. |
FileAllocationInformationValue: 19 A FILE_ALLOCATION_INFORMATION structure. |
FileEndOfFileInformationValue: 20 A FILE_END_OF_FILE_INFORMATION structure. |
FileAlternateNameInformationValue: 21 A FILE_NAME_INFORMATION structure. |
FileStreamInformationValue: 22 A message buffer that contains one or more FILE_STREAM_INFORMATION structures. |
FilePipeInformationValue: 23 A FILE_PIPE_INFORMATION structure. |
FilePipeLocalInformationValue: 24 A FILE_PIPE_LOCAL_INFORMATION structure. |
FilePipeRemoteInformationValue: 25 A FILE_PIPE_REMOTE_INFORMATION structure. |
FileMailslotQueryInformationValue: 26 A FILE_MAILSLOT_QUERY_INFORMATION structure. |
FileMailslotSetInformationValue: 27 A FILE_MAILSLOT_SET_INFORMATION structure. |
FileCompressionInformationValue: 28 A FILE_COMPRESSION_INFORMATION structure. |
FileObjectIdInformationValue: 29 A FILE_OBJECTID_INFORMATION structure. |
FileCompletionInformationValue: 30 This value is reserved for system use. |
FileMoveClusterInformationValue: 31 This value is reserved for system use. |
FileQuotaInformationValue: 32 A FILE_QUOTA_INFORMATION structure. |
FileReparsePointInformationValue: 33 A FILE_REPARSE_POINT_INFORMATION structure. |
FileNetworkOpenInformationValue: 34 A FILE_NETWORK_OPEN_INFORMATION structure. |
FileAttributeTagInformationValue: 35 A FILE_ATTRIBUTE_TAG_INFORMATION structure. |
FileTrackingInformationValue: 36 This value is reserved for system use. |
FileIdBothDirectoryInformationValue: 37 A FILE_ID_BOTH_DIR_INFORMATION structure. |
FileIdFullDirectoryInformationValue: 38 A FILE_ID_FULL_DIR_INFORMATION structure. |
FileValidDataLengthInformationValue: 39 A FILE_VALID_DATA_LENGTH_INFORMATION structure. |
FileShortNameInformationValue: 40 A FILE_NAME_INFORMATION structure. |
FileIoCompletionNotificationInformationValue: 41 This value is reserved for system use. This value is available starting with Windows Vista. |
FileIoStatusBlockRangeInformationValue: 42 This value is reserved for system use. This value is available starting with Windows Vista. |
FileIoPriorityHintInformationValue: 43 A FILE_IO_PRIORITY_HINT_INFORMATION structure. This value is available starting with Windows Vista. |
FileSfioReserveInformationValue: 44 This value is reserved for system use. This value is available starting with Windows Vista. |
FileSfioVolumeInformationValue: 45 This value is reserved for system use. This value is available starting with Windows Vista. |
FileHardLinkInformationValue: 46 A FILE_LINKS_INFORMATION structure. This value is available starting with Windows Vista. |
FileProcessIdsUsingFileInformationValue: 47 A FILE_PROCESS_IDS_USING_FILE_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows Vista. |
FileNormalizedNameInformationValue: 48 A FILE_NAME_INFORMATION structure. This value is defined starting with Windows Vista. It is supported starting with Windows 8. |
FileNetworkPhysicalNameInformationValue: 49 A FILE_NETWORK_PHYSICAL_NAME_INFORMATION structure. This value is available starting with Windows Vista. |
FileIdGlobalTxDirectoryInformationValue: 50 A FILE_ID_GLOBAL_TX_DIR_INFORMATION structure. This value is available starting with Windows 7. |
FileIsRemoteDeviceInformationValue: 51 A FILE_IS_REMOTE_DEVICE_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 7. |
FileUnusedInformationValue: 52 This value is reserved for system use. This value is available starting with Windows 7. |
FileNumaNodeInformationValue: 53 A FILE_NUMA_NODE_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 7. |
FileStandardLinkInformationValue: 54 A FILE_STANDARD_LINK_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 7. |
FileRemoteProtocolInformationValue: 55 A FILE_REMOTE_PROTOCOL_INFORMATION structure. This value is available starting with Windows 7. |
FileRenameInformationBypassAccessCheckValue: 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. |
FileLinkInformationBypassAccessCheckValue: 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. |
FileVolumeNameInformationValue: 58 A FILE_VOLUME_NAME_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 10. |
FileIdInformationValue: 59 A FILE_ID_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 10. |
FileIdExtdDirectoryInformationValue: 60 A FILE_ID_EXTD_DIR_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 10. |
FileReplaceCompletionInformationValue: 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. |
FileHardLinkFullIdInformationValue: 62 A FILE_LINKS_FULL_ID_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 10. |
FileIdExtdBothDirectoryInformationValue: 63 A FILE_ID_EXTD_BOTH_DIR_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 10. |
FileDispositionInformationExValue: 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. |
FileRenameInformationExValue: 65 A FILE_RENAME_INFORMATION structure which contains additional flags. This value is available starting with Windows 10, version 1709. |
FileRenameInformationExBypassAccessCheckValue: 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. |
FileDesiredStorageClassInformationValue: 67 A FILE_DESIRED_STORAGE_CLASS_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 10, version 1709. |
FileStatInformationValue: 68 A FILE_STAT_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 10, version 1709. |
FileMemoryPartitionInformationValue: 69 Reserved. This value is available starting with Windows 10, version 1709. |
FileStatLxInformationValue: 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. |
FileCaseSensitiveInformationValue: 71 A FILE_CASE_SENSITIVE_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 10 April 2018 Update. |
FileLinkInformationExValue: 72 A FILE_LINK_INFORMATION structure which contains additional flags. This value is available starting with Windows 10, version 1809. |
FileLinkInformationExBypassAccessCheckValue: 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. |
FileStorageReserveIdInformationValue: 74 A FILE_STORAGE_RESERVE_ID_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 10, version 1809. |
FileCaseSensitiveInformationForceAccessCheckValue: 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. |
FileKnownFolderInformationValue: 76 A FILE_KNOWN_FOLDER_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows Server 2022. |
FileStatBasicInformationValue: 77 A FILE_STAT_BASIC_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 11, build 26048. |
FileId64ExtdDirectoryInformationValue: 78 A FILE_ID_64_EXTD_DIR_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 11, version 23H2. |
FileId64ExtdBothDirectoryInformationValue: 79 A FILE_ID_64_EXTD_BOTH_DIR_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 11, version 23H2. |
FileIdAllExtdDirectoryInformationValue: 80 A FILE_ID_ALL_EXTD_DIR_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 11, version 23H2. |
FileIdAllExtdBothDirectoryInformationValue: 81 A FILE_ID_ALL_EXTD_BOTH_DIR_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 11, version 23H2. |
FileMaximumInformationMaximum value of this enumeration. This value is available starting with Windows 7. |
Requirements
| Requirement | Value |
|---|---|
| Header | wdm.h (include FltKernel.h, Ntifs.h) |