DISK_GEOMETRY structure (ntdddisk.h)

The DISK_GEOMETRY structure is obsolete and provided only to support existing drivers. New drivers must use DISK_GEOMETRY_EX. DISK_GEOMETRY is used in conjunction with the IOCTL_DISK_GET_DRIVE_GEOMETRY and the IOCTL_DISK_GET_MEDIA_TYPES requests, in order to retrieve information about the geometry of a physical disk.

Syntax

typedef struct _DISK_GEOMETRY {
  LARGE_INTEGER Cylinders;
  MEDIA_TYPE    MediaType;
  ULONG         TracksPerCylinder;
  ULONG         SectorsPerTrack;
  ULONG         BytesPerSector;
} DISK_GEOMETRY, *PDISK_GEOMETRY;

Members

Cylinders

Indicates the number of cylinders on the disk device.

MediaType

Indicates the type of disk. The enumeration MEDIA_TYPE lists the values that can be assigned to this member.

TracksPerCylinder

Indicates the number of tracks in a cylinder.

SectorsPerTrack

Indicates the number of sectors in each track.

BytesPerSector

Indicates the number of bytes in a disk sector.

Remarks

DISK_GEOMETRY_EX must be used with new drivers, in order to accommodate GUID Partition Table (GPT) partitions. The DISK_GEOMETRY structure is nested within the DISK_GEOMETRY_EX structure.

IOCTL_DISK_GET_MEDIA_TYPES causes an array of these structures to be returned.

Requirements

Requirement Value
Header ntdddisk.h (include Ntdddisk.h, Ntddk.h, Ntdddisk.h)

See also

DISK_GEOMETRY_EX

IOCTL_DISK_GET_DRIVE_GEOMETRY

IOCTL_DISK_GET_MEDIA_TYPES