¡@

Home 

c# Programming Glossary: diskgeometry

Physical disk size not correct (IoCtlDiskGetDriveGeometry)

http://stackoverflow.com/questions/15051660/physical-disk-size-not-correct-ioctldiskgetdrivegeometry

StructLayout LayoutKind.Sequential internal struct DiskGeometry public long Cylinders public int MediaType public int TracksPerCylinder.. return int geometrySize Marshal.SizeOf typeof DiskGeometry Console.WriteLine geometry size 0 geometrySize IntPtr geometryBlob.. return Console.WriteLine Bytes read 0 numBytesRead DiskGeometry geometry DiskGeometry Marshal.PtrToStructure geometryBlob typeof..