@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm 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; } } } !!!!VB 2008 <System.Runtime.InteropServices.StructLayout(LayoutKind.Sequential)> _ Public Structure DISK_GEOMETRY Public Cylinders As Long Public MediaType As MEDIA_TYPE Public TracksPerCylinder As Integer Public SectorsPerTrack As Integer Public BytesPerSector As Integer Public ReadOnly Property disksize() As Long Get return Cylinders * CLng(TracksPerCylinder) * CLng(SectorsPerTrack) * CLng(BytesPerSector;) End Get End Property End Structure !!!!User-Defined Field Types: [MEDIA_TYPE] !!!!Notes: None. Documentation: DISK_GEOMETRY@msdn on MSDN
Edit Structures.DISK_G...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.