Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

DISK_GEOMETRY (Structures)
 
.
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:

MEDIA_TYPE

Notes:

None.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions