NTFS_VOLUME_DATA_BUFFER - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

typedef struct {
  LARGE_INTEGER VolumeSerialNumber;
  LARGE_INTEGER NumberSectors;
  LARGE_INTEGER TotalClusters;
  LARGE_INTEGER FreeClusters;
  LARGE_INTEGER TotalReserved;
  ULONG         BytesPerSector;
  ULONG         BytesPerCluster;
  ULONG         BytesPerFileRecordSegment;
  ULONG         ClustersPerFileRecordSegment;
  LARGE_INTEGER MftValidDataLength;
  LARGE_INTEGER MftStartLcn;
  LARGE_INTEGER Mft2StartLcn;
  LARGE_INTEGER MftZoneStart;
  LARGE_INTEGER MftZoneEnd;
} NTFS_VOLUME_DATA_BUFFER, *PNTFS_VOLUME_DATA_BUFFER;
View the official Windows Driver Kit DDI reference
// winioctl.h

typedef struct {
  LARGE_INTEGER VolumeSerialNumber;
  LARGE_INTEGER NumberSectors;
  LARGE_INTEGER TotalClusters;
  LARGE_INTEGER FreeClusters;
  LARGE_INTEGER TotalReserved;
  DWORD         BytesPerSector;
  DWORD         BytesPerCluster;
  DWORD         BytesPerFileRecordSegment;
  DWORD         ClustersPerFileRecordSegment;
  LARGE_INTEGER MftValidDataLength;
  LARGE_INTEGER MftStartLcn;
  LARGE_INTEGER Mft2StartLcn;
  LARGE_INTEGER MftZoneStart;
  LARGE_INTEGER MftZoneEnd;
} NTFS_VOLUME_DATA_BUFFER, *PNTFS_VOLUME_DATA_BUFFER;
View the official Win32 API reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ntifs-ntfs_volume_data_buffer)

Description

The NTFS_VOLUME_DATA_BUFFER structure contains information about an NTFS volume. It's used with the FSCTL_GET_NTFS_VOLUME_DATA control code.

Members

VolumeSerialNumber

The serial number of the volume. This is a unique number assigned to the volume media by the operating system.

NumberSectors

Number of sectors in the specified volume.

TotalClusters

Number of used and free clusters in the specified volume.

FreeClusters

Number of free clusters in the specified volume.

TotalReserved

Number of reserved clusters in the specified volume.

BytesPerSector

Number of bytes in a sector on the specified volume.

BytesPerCluster

Number of bytes in a cluster on the specified volume. This value is also known as the cluster factor.

BytesPerFileRecordSegment

Number of bytes in a file record segment.

ClustersPerFileRecordSegment

Number of clusters in a file record segment.

MftValidDataLength

Length of the master file table (MFT) in bytes.

MftStartLcn

Starting logical cluster number (LCN) of the MFT.

Mft2StartLcn

Starting LCN of the MFT mirror.

MftZoneStart

Starting LCN of the MFT zone.

MftZoneEnd

Ending LCN of the MFT zone.

Remarks

Reserved clusters are the free clusters reserved for later use by Windows.

The NTFS_VOLUME_DATA_BUFFER structure represents the basic information returned by FSCTL_GET_NTFS_VOLUME_DATA. For extended volume information, pass a buffer that is the combined size of the NTFS_VOLUME_DATA_BUFFER and NTFS_EXTENDED_VOLUME_DATA structures. Upon success, the buffer returned by FSCTL_GET_NTFS_VOLUME_DATA will contain the information associated with both structures. The NTFS_VOLUME_DATA_BUFFER structure will always be filled starting at the beginning of the buffer, with the NTFS_EXTENDED_VOLUME_DATA structure immediately following.

See also

FSCTL_GET_NTFS_VOLUME_DATA

NTFS_EXTENDED_VOLUME_DATA


Win32 API reference (ns-winioctl-ntfs_volume_data_buffer)

NTFS_VOLUME_DATA_BUFFER structure

Description

Represents volume data. This structure is passed to the FSCTL_GET_NTFS_VOLUME_DATA control code.

Members

VolumeSerialNumber

The serial number of the volume. This is a unique number assigned to the volume media by the operating system.

NumberSectors

The number of sectors in the specified volume.

TotalClusters

The number of used and free clusters in the specified volume.

FreeClusters

The number of free clusters in the specified volume.

TotalReserved

The number of reserved clusters in the specified volume.

BytesPerSector

The number of bytes in a sector on the specified volume.

BytesPerCluster

The number of bytes in a cluster on the specified volume. This value is also known as the cluster factor.

BytesPerFileRecordSegment

The number of bytes in a file record segment.

ClustersPerFileRecordSegment

The number of clusters in a file record segment.

MftValidDataLength

The length of the master file table, in bytes.

MftStartLcn

The starting logical cluster number of the master file table.

Mft2StartLcn

The starting logical cluster number of the master file table mirror.

MftZoneStart

The starting logical cluster number of the master file table zone.

MftZoneEnd

The ending logical cluster number of the master file table zone.

Remarks

Reserved clusters are the free clusters reserved for later use by Windows.

The NTFS_VOLUME_DATA_BUFFER structure represents the basic information returned by FSCTL_GET_NTFS_VOLUME_DATA. For extended volume information, pass a buffer that is the combined size of the NTFS_VOLUME_DATA_BUFFER and NTFS_EXTENDED_VOLUME_DATA structures. Upon success, the buffer returned by FSCTL_GET_NTFS_VOLUME_DATA will contain the information associated with both structures. The NTFS_VOLUME_DATA_BUFFER structure will always be filled starting at the beginning of the buffer, with the NTFS_EXTENDED_VOLUME_DATA structure immediately following. The NTFS_EXTENDED_VOLUME_DATA structure is defined as follows:

C++
typedef struct { ULONG ByteCount; USHORT MajorVersion; USHORT MinorVersion; } NTFS_EXTENDED_VOLUME_DATA, *PNTFS_EXTENDED_VOLUME_DATA;

This structure contains the major and minor version information for an NTFS volume. The ByteCount member will return the total bytes of the output buffer used for this structure by the call to FSCTL_GET_NTFS_VOLUME_DATA. This value should be sizeof(NTFS_EXTENDED_VOLUME_DATA) if the buffer passed was large enough to hold it, otherwise the value will be less than sizeof(NTFS_EXTENDED_VOLUME_DATA).

See also

FSCTL_GET_NTFS_VOLUME_DATA