FILE_INFORMATION_CLASS enumeration (wdm.h)
A value that 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
//
// These are special versions of these operations (defined earlier)
// which can be used by kernel mode drivers only to bypass security
// access checks for Rename and HardLink operations. These operations
// are only recognized by the IOManager, a file system should never
// receive these.
//
FileRenameInformationBypassAccessCheck, // 56
FileLinkInformationBypassAccessCheck, // 57
//
// End of special information classes reserved for IOManager.
//
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
FileMaximumInformation
} FILE_INFORMATION_CLASS, *PFILE_INFORMATION_CLASS;
Constants
FileDirectoryInformation A FILE_DIRECTORY_INFORMATION structure. |
FileFullDirectoryInformation A FILE_FULL_DIR_INFORMATION structure. |
FileBothDirectoryInformation A FILE_BOTH_DIR_INFORMATION structure. |
FileBasicInformation A FILE_BASIC_INFORMATION structure. |
FileStandardInformation A FILE_STANDARD_INFORMATION structure. |
FileInternalInformation A FILE_INTERNAL_INFORMATION structure. |
FileEaInformation A FILE_EA_INFORMATION structure. |
FileAccessInformation A FILE_ACCESS_INFORMATION structure. |
FileNameInformation A FILE_NAME_INFORMATION structure. |
FileRenameInformation A FILE_RENAME_INFORMATION structure. |
FileLinkInformation A FILE_LINK_INFORMATION structure. |
FileNamesInformation A FILE_NAMES_INFORMATION structure. |
FileDispositionInformation A FILE_DISPOSITION_INFORMATION structure. |
FilePositionInformation A FILE_POSITION_INFORMATION structure. |
FileFullEaInformation A FILE_FULL_EA_INFORMATION structure. |
FileModeInformation A FILE_MODE_INFORMATION structure. |
FileAlignmentInformation A FILE_ALIGNMENT_INFORMATION structure. |
FileAllInformation A FILE_ALL_INFORMATION structure. |
FileAllocationInformation A FILE_ALLOCATION_INFORMATION structure. |
FileEndOfFileInformation A FILE_END_OF_FILE_INFORMATION structure. |
FileAlternateNameInformation A FILE_NAME_INFORMATION structure. |
FileStreamInformation A message buffer that contains one or more FILE_STREAM_INFORMATION structures. |
FilePipeInformation A FILE_PIPE_INFORMATION structure. |
FilePipeLocalInformation A FILE_PIPE_LOCAL_INFORMATION structure. |
FilePipeRemoteInformation A FILE_PIPE_REMOTE_INFORMATION structure. |
FileMailslotQueryInformation A FILE_MAILSLOT_QUERY_INFORMATION structure. |
FileMailslotSetInformation A FILE_MAILSLOT_SET_INFORMATION structure. |
FileCompressionInformation A FILE_COMPRESSION_INFORMATION structure. |
FileObjectIdInformation A FILE_OBJECTID_INFORMATION structure. |
FileCompletionInformation This value is reserved for system use. |
FileMoveClusterInformation This value is reserved for system use. |
FileQuotaInformation A FILE_QUOTA_INFORMATION structure. |
FileReparsePointInformation A FILE_REPARSE_POINT_INFORMATION structure. |
FileNetworkOpenInformation A FILE_NETWORK_OPEN_INFORMATION structure. |
FileAttributeTagInformation A FILE_ATTRIBUTE_TAG_INFORMATION structure. |
FileTrackingInformation This value is reserved for system use. |
FileIdBothDirectoryInformation A FILE_ID_BOTH_DIR_INFORMATION structure. |
FileIdFullDirectoryInformation A FILE_ID_FULL_DIR_INFORMATION structure. |
FileValidDataLengthInformation A FILE_VALID_DATA_LENGTH_INFORMATION structure. |
FileShortNameInformation A FILE_NAME_INFORMATION structure. |
FileIoCompletionNotificationInformation This value is reserved for system use. This value is available starting with Windows Vista. |
FileIoStatusBlockRangeInformation This value is reserved for system use. This value is available starting with Windows Vista. |
FileIoPriorityHintInformation A FILE_IO_PRIORITY_HINT_INFORMATION structure. This value is available starting with Windows Vista. |
FileSfioReserveInformation This value is reserved for system use. This value is available starting with Windows Vista. |
FileSfioVolumeInformation This value is reserved for system use. This value is available starting with Windows Vista. |
FileHardLinkInformation A FILE_LINKS_INFORMATION structure. This value is available starting with Windows Vista. |
FileProcessIdsUsingFileInformation A FILE_PROCESS_IDS_USING_FILE_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows Vista. |
FileNormalizedNameInformation A FILE_NAME_INFORMATION structure. This value is defined starting with Windows Vista. It is supported starting with Windows 8. |
FileNetworkPhysicalNameInformation A FILE_NETWORK_PHYSICAL_NAME_INFORMATION structure. This value is available starting with Windows Vista. |
FileIdGlobalTxDirectoryInformation A FILE_ID_GLOBAL_TX_DIR_INFORMATION structure. This value is available starting with Windows 7. |
FileIsRemoteDeviceInformation A FILE_IS_REMOTE_DEVICE_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 7. |
FileUnusedInformation This value is reserved for system use. This value is available starting with Windows 7. |
FileNumaNodeInformation A FILE_NUMA_NODE_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 7. |
FileStandardLinkInformation A FILE_STANDARD_LINK_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 7. |
FileRemoteProtocolInformation A FILE_REMOTE_PROTOCOL_INFORMATION structure. This value is available starting with Windows 7. |
FileRenameInformationBypassAccessCheck 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 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 A FILE_VOLUME_NAME_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 10. |
FileIdInformation A FILE_ID_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 10. |
FileIdExtdDirectoryInformation A FILE_ID_EXTD_DIR_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 10. |
FileReplaceCompletionInformation 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 A FILE_LINKS_FULL_ID_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 10. |
FileIdExtdBothDirectoryInformation A FILE_ID_EXTD_BOTH_DIR_INFORMATION structure. This value is reserved for system use. This value is available starting with Windows 10. |
FileDispositionInformationEx 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 A FILE_RENAME_INFORMATION structure which contains additional flags. This value is available starting with Windows 10, version 1709. |
FileRenameInformationExBypassAccessCheck 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 A FILE_DESIRED_STORAGE_CLASS_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 10, version 1709. |
FileStatInformation A FILE_STAT_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 10, version 1709. |
FileMemoryPartitionInformation Reserved. This value is available starting with Windows 10, version 1709. |
FileStatLxInformation 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 A FILE_CASE_SENSITIVE_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 10 April 2018 Update. |
FileLinkInformationEx A FILE_LINK_INFORMATION structure which contains additional flags. This value is available starting with Windows 10, version 1809. |
FileLinkInformationExBypassAccessCheck 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 A FILE_SET_STORAGE_RESERVE_ID_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows 10, version 1809. |
FileCaseSensitiveInformationForceAccessCheck 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 A FILE_KNOWN_FOLDER_INFORMATION structure, declared in ntifs.h. This value is available starting with Windows Server 2022. |
FileMaximumInformation This value is reserved for system use. This value is available starting with Windows 7. |
Requirements
Header | wdm.h (include FltKernel.h, Ntifs.h) |
Feedback
Submit and view feedback for