Programmatically differentiating between USB Floppy Drive and USB Flash Drive in Windows

前端 未结 4 1345
故里飘歌
故里飘歌 2020-12-19 06:05

On Windows (XP-7), is there a reliable way of programatically differentiating between USB floppy drives and USB flash drives in C++?

At the moment, I\'m using WMI to

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-19 06:11

    You can use the Size attribute (USB > 1.4MB), it's not like there is any chance of meeting 1.4MB flash drive any time soon.

提交回复
热议问题