#ifndef _NTIOAPI_H
typedef enum _FSINFOCLASS
{
FileFsVolumeInformation = 1, // q: FILE_FS_VOLUME_INFORMATION
FileFsLabelInformation, // s: FILE_FS_LABEL_INFORMATION // SeManageVolumePrivilege
FileFsSizeInformation, // q: FILE_FS_SIZE_INFORMATION
FileFsDeviceInformation, // q: FILE_FS_DEVICE_INFORMATION
FileFsAttributeInformation, // q: FILE_FS_ATTRIBUTE_INFORMATION
FileFsControlInformation, // qs: FILE_FS_CONTROL_INFORMATION // SeManageVolumePrivilege
FileFsFullSizeInformation, // q: FILE_FS_FULL_SIZE_INFORMATION
FileFsObjectIdInformation, // qs: FILE_FS_OBJECTID_INFORMATION // SeRestorePrivilege
FileFsDriverPathInformation, // q: FILE_FS_DRIVER_PATH_INFORMATION
FileFsVolumeFlagsInformation, // qs: FILE_FS_VOLUME_FLAGS_INFORMATION // SeManageVolumePrivilege // 10
FileFsSectorSizeInformation, // q: FILE_FS_SECTOR_SIZE_INFORMATION // since WIN8
FileFsDataCopyInformation, // q: FILE_FS_DATA_COPY_INFORMATION
FileFsMetadataSizeInformation, // q: FILE_FS_METADATA_SIZE_INFORMATION // since THRESHOLD
FileFsFullSizeInformationEx, // q: FILE_FS_FULL_SIZE_INFORMATION_EX // since REDSTONE5
FileFsGuidInformation, // q: FILE_FS_GUID_INFORMATION // since 23H2
FileFsMaximumInformation
} FSINFOCLASS, *PFSINFOCLASS;
View code on GitHub// wdm.h
typedef enum _FSINFOCLASS {
FileFsVolumeInformation,
FileFsLabelInformation,
FileFsSizeInformation,
FileFsDeviceInformation,
FileFsAttributeInformation,
FileFsControlInformation,
FileFsFullSizeInformation,
FileFsObjectIdInformation,
FileFsDriverPathInformation,
FileFsVolumeFlagsInformation,
FileFsSectorSizeInformation,
FileFsDataCopyInformation,
FileFsMetadataSizeInformation,
FileFsFullSizeInformationEx,
FileFsGuidInformation,
FileFsMaximumInformation
} FS_INFORMATION_CLASS, *PFS_INFORMATION_CLASS;
View the official Windows Driver Kit DDI referenceNo description available.
The FS_INFORMATION_CLASS enumeration contains the information class constants that specify what type of information structure is present for a set or a query operation.
FileFsVolumeInformationReturn a FILE_FS_VOLUME_INFORMATION structure that contains information about the volume such as the volume label, serial number, and creation time.
FileFsLabelInformationUse a FILE_FS_LABEL_INFORMATION structure to set information a volume label.
FileFsSizeInformationReturn a FILE_FS_SIZE_INFORMATION structure containing information about the amount of space on the volume that is available to the user that is associated with the calling thread.
FileFsDeviceInformationReturn a FILE_FS_DEVICE_INFORMATION structure that contains device information for the volume.
FileFsAttributeInformationReturn a FILE_FS_ATTRIBUTE_INFORMATION structure that contains attribute information about the file system responsible for the volume.
FileFsControlInformationReturn a FILE_FS_CONTROL_INFORMATION structure that contains file system control information about the volume.
FileFsFullSizeInformationReturn a FILE_FS_FULL_SIZE_INFORMATION structure that contains information about the total amount of space available on the volume.
FileFsObjectIdInformationReturn a FILE_FS_OBJECTID_INFORMATION structure that contains file-system-specific object ID information for the volume. Note that this is not the same as the (GUID-based) unique volume name that is assigned by the operating system.
FileFsDriverPathInformationReturn a FILE_FS_DRIVER_PATH_INFORMATION structure that contains information about whether a specified driver is in the I/O path for the volume. The originator of the IRP_MJ_QUERY_VOLUME_INFORMATION request must store the name of the driver into the FILE_FS_DRIVER_PATH_INFORMATION structure before sending the IRP to the file system volume device stack.
FileFsVolumeFlagsInformationUse a FILE_FS_VOLUME_FLAGS_INFORMATION structure to set the flags for a volume.
FileFsSectorSizeInformationReturn a FILE_FS_SECTOR_SIZE_INFORMATION structure that contains information about the physical and logical sector sizes of a volume.
FileFsDataCopyInformationReturns a FILE_FS_DATA_COPY_INFORMATION structure that contains the number of data copies.
FileFsMetadataSizeInformationReturns a FILE_FS_METADATA_SIZE_INFORMATION structure that contains the metadata size information.
FileFsFullSizeInformationExReturns a FILE_FS_FULL_SIZE_INFORMATION_EX structure that contains information about the total amount of space available on the volume.
FileFsGuidInformationReturns a FILE_FS_GUID_INFORMATION structure that contains the GUID information.
FileFsMaximumInformationEnd of this enumeration.
This enumeration is documented in Windows Driver Kit.
FS_INFORMATION_CLASS enumeration type is used in a call to NtQueryVolumeInformationFile and NtSetVolumeInformationFile.
QueryFILE_FS_VOLUME_INFORMATIONSetFILE_FS_LABEL_INFORMATIONQueryFILE_FS_SIZE_INFORMATIONQueryFILE_FS_DEVICE_INFORMATIONQueryFILE_FS_ATTRIBUTE_INFORMATIONQuery, SetFILE_FS_CONTROL_INFORMATIONQuerySet