#ifndef _NTIOAPI_H
//
// NtQueryVolumeInformation/NtSetVolumeInformation types
//
typedef struct _FILE_FS_VOLUME_INFORMATION
{
    LARGE_INTEGER VolumeCreationTime;
    ULONG VolumeSerialNumber;
    ULONG VolumeLabelLength;
    BOOLEAN SupportsObjects;
    _Field_size_bytes_(VolumeLabelLength) WCHAR VolumeLabel[1];
} FILE_FS_VOLUME_INFORMATION, *PFILE_FS_VOLUME_INFORMATION;
View code on GitHub// ntddk.h
typedef struct _FILE_FS_VOLUME_INFORMATION {
  LARGE_INTEGER VolumeCreationTime;
  ULONG         VolumeSerialNumber;
  ULONG         VolumeLabelLength;
  BOOLEAN       SupportsObjects;
  WCHAR         VolumeLabel[1];
} FILE_FS_VOLUME_INFORMATION, *PFILE_FS_VOLUME_INFORMATION;
View the official Windows Driver Kit DDI referenceNo description available.
The FILE_FS_VOLUME_INFORMATION structure is used to query information about a volume on which a file system is mounted.
VolumeCreationTimeTime when the volume was created.
VolumeSerialNumberSerial number of the volume.
VolumeLabelLengthLength, in bytes, of the name of the volume.
SupportsObjectsTRUE if the file system supports object-oriented file system objects, FALSE otherwise.
VolumeLabelName of the volume.
This information can be queried in either of the following ways:
No specific access rights are required to query this information. Thus this information is available as long as the volume is accessed through an open handle to the volume itself, or to a file or directory on the volume.
All dates and times are in absolute system-time format. Absolute system time is the number of 100-nanosecond intervals since the start of the year 1601.
The size of the buffer passed in the FileInformation parameter to FltQueryVolumeInformation or ZwQueryVolumeInformationFile must be at least sizeof (FILE_FS_VOLUME_INFORMATION).
This structure must be aligned on a LONGLONG (8-byte) boundary.
IRP_MJ_QUERY_VOLUME_INFORMATION
This structure is documented in Windows Driver Kit.
Structure provides basic information about volume. It's filled in a result of call NtQueryVolumeInformationFile with FileFsVolumeInformation class.
It means time of last Volume Formatting Process.
Serial number of volume, associated in Volume Formatting Process.
Length of VolumeLabel array, in bytes.
If TRUE, Object Files can be stored on specified volume.
Name of volume. Can be set with FileFsLabelInformation.