Possible Duplicate:
How to list physical disks?
What is the "best way" (fastest) C++ way to List physical drives installed on my computer? Is there a boost library to do that?
Possible Duplicate:
How to list physical disks?
What is the "best way" (fastest) C++ way to List physical drives installed on my computer? Is there a boost library to do that?
use
GetLogicalDriveStrings()
to retrieve all the available logical drives.or use
GetLogicalDrives()
One possibility is to use WMI to enumerate the instances of Win32_DiskDrive.