c++winapisystemdrives

C++\Win32 Information about all drives: hard drives, USB drives, disc drives, diskette drives etc


I want to get information about all types of drives in the system: Hard Drives, USB Drives, Disk Drives, Diskette Drives.

About each I want to know: size, free space, file system and whether it is real or emulated.

Hard Drives: internal or external.


Solution

  • Short answer WMI Windows Management Instrumentation. Search for it. It will tell more info than you ever wanted to know.

    Or you can refer to GetLogicalDrives() : Listing physical drives installed on my computer