get hard drive size.
-
Hi, In my application I need to get the complete Hard Drive size. I am using Windows 2000. Is there any API to get the size of hard drive in win2000? I don't want to use WMI class (win32_DiskDrive). Thanks in advance.
-
Hi, In my application I need to get the complete Hard Drive size. I am using Windows 2000. Is there any API to get the size of hard drive in win2000? I don't want to use WMI class (win32_DiskDrive). Thanks in advance.
IOCTL_DISK_GET_DRIVE_GEOMETRY
is another way to do it. The API to use here isDeviceIoControl
. From Windows XP onwards you can useIOCTL_DISK_GET_DRIVE_GEOMETRY_EX
to directly get the disk size.«_Superman_»
-
Hi, In my application I need to get the complete Hard Drive size. I am using Windows 2000. Is there any API to get the size of hard drive in win2000? I don't want to use WMI class (win32_DiskDrive). Thanks in advance.
Madan Chauhan wrote:
Is there any API to get the size of hard drive in win2000?
Such as this?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch