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

StackOverflow https://stackoverflow.com/questions/11901990

  •  25-06-2021
  •  | 
  •  

문제

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.

도움이 되었습니까?

해결책

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

다른 팁

We're developing this API that will eventually allows you to communicate with storage devices. It's open source and you can see the current code for some information. Check back for more features: https://github.com/virtium/vtStor

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top