我可以将可移动驱动器(例如USB闪存驱动器)与包含可移动介质的固定驱动器(例如SD卡读卡器或DVD-ROM)区分开来
问题描述:
你好,
背景:
Hello,
Context:
- 使用Visual C / C ++
- 定位Windows Vista及更高版本(但如果解决方案也可用于WinXP,那将是受欢迎的)
- 可用于执行操作的内容:管理员权限,常规应用程序(exe),各种类型的驱动程序(包括卷过滤器和设备过滤器)。
问题:
有没有办法区分以下类别的存储设备?
I)不可移动设备,可以包含可移动媒体
(例如DVD) -ROM或SD卡读卡器。)
II)可移动驱动器,不能包含任何可移动介质(如USB闪存驱动器)。
非常感谢。
$
Problem:
Is there a way to distinguish between the following classes of storage devices?
I) A non-removable device that can contain a removable medium
(such as DVD-ROM or SD card reader).
II) A removable drive that cannot contain any removable medium (such as USB flash drive).
Thank you very much.
答
USB怎么样DVD或读卡器?
What about a USB DVD or card reader?
如果您只对介质感兴趣,可以进行一些测试IO并检查读取速度。
You can do some test IO and check the read speed if you are only interested in the medium.