DISK_GEOMETRY (Structures)
Last changed: -80.2.36.104

.
Summary
The DISK_GEOMETRY structure contains the geometry of disk devices and media.

C# Definition:

[StructLayout(LayoutKind.Sequential)]
public struct DISK_GEOMETRY
{
   public long Cylinders;
   public MEDIA_TYPE MediaType;
   public int TracksPerCylinder;
   public int SectorsPerTrack;
   public int BytesPerSector;

   public long DiskSize
   {
     get
     {
       return Cylinders * (long)TracksPerCylinder * (long)SectorsPerTrack * (long)BytesPerSector;
     }
   }
}

User-Defined Field Types:

None.

Notes:

None.

Documentation