我可以将可移动驱动器(例如USB闪存驱动器)与包含可移动介质的固定驱动器(例如SD卡读卡器或DVD-ROM)区分开来 [英] Can I distinguish removable drive (eg. USB flash drive) from fixed drive containing removable medium (eg. SD card reader or DVD-ROM)
本文介绍了我可以将可移动驱动器(例如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.
这篇关于我可以将可移动驱动器(例如USB闪存驱动器)与包含可移动介质的固定驱动器(例如SD卡读卡器或DVD-ROM)区分开来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文