NTFS_EXTENDED_VOLUME_DATA structure

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

Syntax

typedef struct {
  DWORD ByteCount;
  WORD  MajorVersion;
  WORD  MinorVersion;
  DWORD BytesPerPhysicalSector;
  WORD  LfsMajorVersion;
  WORD  LfsMinorVersion;
  DWORD MaxDeviceTrimExtentCount;
  DWORD MaxDeviceTrimByteCount;
  DWORD MaxVolumeTrimExtentCount;
  DWORD MaxVolumeTrimByteCount;
} NTFS_EXTENDED_VOLUME_DATA, *PNTFS_EXTENDED_VOLUME_DATA;

Members

ByteCount

MajorVersion

MinorVersion

BytesPerPhysicalSector

LfsMajorVersion

LfsMinorVersion

MaxDeviceTrimExtentCount

MaxDeviceTrimByteCount

MaxVolumeTrimExtentCount

MaxVolumeTrimByteCount

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).

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header winioctl.h (include Windows.h)

See also

FSCTL_GET_NTFS_VOLUME_DATA