DISK_EX_INT13_INFO - NtDoc

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

typedef struct _DISK_EX_INT13_INFO {
  USHORT  ExBufferSize;
  USHORT  ExFlags;
  ULONG   ExCylinders;
  ULONG   ExHeads;
  ULONG   ExSectorsPerTrack;
  ULONG64 ExSectorsPerDrive;
  USHORT  ExSectorSize;
  USHORT  ExReserved;
} DISK_EX_INT13_INFO, *PDISK_EX_INT13_INFO;

View the official Windows Driver Kit DDI reference
// winioctl.h

typedef struct _DISK_EX_INT13_INFO {
  WORD    ExBufferSize;
  WORD    ExFlags;
  DWORD   ExCylinders;
  DWORD   ExHeads;
  DWORD   ExSectorsPerTrack;
  DWORD64 ExSectorsPerDrive;
  WORD    ExSectorSize;
  WORD    ExReserved;
} DISK_EX_INT13_INFO, *PDISK_EX_INT13_INFO;

View the official Win32 API reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ntdddisk-_disk_ex_int13_info)

_DISK_EX_INT13_INFO structure

Description

The DISK_EX_INT13_INFO structure is used by the BIOS to report disk detection data for a partition with an extended INT13 format.

Members

ExBufferSize

Indicates the size of the buffer that the caller provides to the BIOS in which to return the requested drive data. ExBufferSize must be 26 or greater. If ExBufferSize is less than 26, the BIOS returns an error . If ExBufferSize is between 30 and 66, the BIOS sets it to exactly 30 on exit. If ExBufferSize is 66 or greater, the BIOS sets it to exactly 66 on exit.

ExFlags

Provides information about the drive. The following table describes the significance of each bit, where bit 0 is the least significant bit and bit 15 the most significant bit. A value of one in the indicated bit means that the feature described in the "Meaning" column is available. A value of zero in the indicated bit means that the feature is not available with this drive.

Bit number Meaning
0 DMA boundary errors are handled transparently.
1 The geometry supplied in bytes 8-12 is valid.
2 Device is removable.
3 Device supports write with verify.
4 Device has change line support (bit 2 must be set).
5 Device is lockable (bit 2 must be set).
6 Device geometry is set to maximum, no media is present (bit 2 must be set). This bit is turned off when media is present in a removable media device.
7-15 Reserved, must be 0.

ExCylinders

Indicates the number of physical cylinders. This is one greater than the maximum cylinder number.

ExHeads

Indicates the number of physical heads. This is one greater than the maximum head number.

ExSectorsPerTrack

Indicates the number of physical sectors per track. This number is the same as the maximum sector number.

ExSectorsPerDrive

Indicates the total count of sectors on the disk. This is one greater than the maximum logical block address.

ExSectorSize

Indicates the sector size in bytes.

ExReserved

Reserved.

See also

DISK_DETECTION_INFO

DISK_INT13_INFO


Win32 API reference (ns-winioctl-disk_ex_int13_info)

DISK_EX_INT13_INFO structure

Description

Contains extended Int13 drive parameters.

Members

ExBufferSize

The size of the extended drive parameter buffer for this partition or disk. For valid values, see the BIOS documentation.

ExFlags

The information flags for this partition or disk. For valid values, see the BIOS documentation.

ExCylinders

The number of cylinders per head. For valid values, see the BIOS documentation.

ExHeads

The maximum number of heads for this hard disk. For valid values, see the BIOS documentation.

ExSectorsPerTrack

The number of sectors per track. For valid values, see the BIOS documentation.

ExSectorsPerDrive

The total number of sectors for this disk. For valid values, see the BIOS documentation.

ExSectorSize

The sector size for this disk. For valid values, see the BIOS documentation.

ExReserved

Reserved for future use.

See also

DISK_DETECTION_INFO