View Single Post
  #1 (permalink)  
Old 03-27-2008, 10:22 PM
Jecci Jecci is offline
Newbie
 
Join Date: Mar 2008
Location: china
Posts: 8
Rep Power: 0
Jecci is on a distinguished road
Send a message via MSN to Jecci
Wink How to get hard disk capacity?

This Disk is not formatted,no initializtion.So can't use GetDiskFreeSpace function.

I use DeviceIoControl function for send IOCTL_DISK_GET_DRIVE_GEOMETRY command to get Disk geometry,but why the returns Cylinders is 36474 ?

I gets my disk geometry:
Cylinders 36474 (LowPart 36474,HighPart 0)
MediaType FixedMedia
TracksPerCylinder 255
SectorsPerTrack 63
BytesPerSector 512

Please help,Thanks in advance.
Reply With Quote

Sponsored Links