How can I get the exact size of the hard disk in bytes on the old Windows 2000?
IOCTL_DISK_GET_LENGTH_INFO works fine for volumes, but not on physical disk handles (stuff at //./PHYSICALDISKx) on Windows 2000. (Works fine for physical drives from XP or later)
We still have to support this ancient OS...
UPDATE:
The code is written in C, so I would use plain Windows API if possible.