FILE_FS_FULL_SIZE_INFORMATION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTIOAPI_H

typedef struct _FILE_FS_FULL_SIZE_INFORMATION
{
    LARGE_INTEGER TotalAllocationUnits;
    LARGE_INTEGER CallerAvailableAllocationUnits;
    LARGE_INTEGER ActualAvailableAllocationUnits;
    ULONG SectorsPerAllocationUnit;
    ULONG BytesPerSector;
} FILE_FS_FULL_SIZE_INFORMATION, *PFILE_FS_FULL_SIZE_INFORMATION;

#endif

View code on GitHub
// ntddk.h

typedef struct _FILE_FS_FULL_SIZE_INFORMATION {
  LARGE_INTEGER TotalAllocationUnits;
  LARGE_INTEGER CallerAvailableAllocationUnits;
  LARGE_INTEGER ActualAvailableAllocationUnits;
  ULONG         SectorsPerAllocationUnit;
  ULONG         BytesPerSector;
} FILE_FS_FULL_SIZE_INFORMATION, *PFILE_FS_FULL_SIZE_INFORMATION;
View the official Windows Driver Kit DDI reference

NtDoc

This structure is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (ns-ntddk-_file_fs_full_size_information)

_FILE_FS_FULL_SIZE_INFORMATION structure

Description

The FILE_FS_FULL_SIZE_INFORMATION structure is used to query sector size information for a file system volume.

Members

TotalAllocationUnits

Total number of allocation units on the volume that are available to the user associated with the calling thread.

Microsoft Windows 2000 and later: If per-user quotas are in use, this value may be less than the total number of allocation units on the disk.

CallerAvailableAllocationUnits

Total number of free allocation units on the volume that are available to the user associated with the calling thread.

Windows 2000 and later: If per-user quotas are in use, this value may be less than the total number of free allocation units on the disk.

ActualAvailableAllocationUnits

Total number of free allocation units on the volume.

SectorsPerAllocationUnit

Number of sectors in each allocation unit.

BytesPerSector

Number of bytes in each sector.

Remarks

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.

The size of the buffer passed in the FileInformation parameter to FltQueryVolumeInformation or ZwQueryVolumeInformationFile must be at least sizeof (FILE_FS_FULL_SIZE_INFORMATION).

This structure must be aligned on a LONGLONG (8-byte) boundary.

See also

FltQueryVolumeInformation

IRP_MJ_QUERY_VOLUME_INFORMATION

ZwQueryVolumeInformationFile