使用C ++检测USB驱动器盘符和信息 [英] Detect USB drive letter and information using C++

查看:96
本文介绍了使用C ++检测USB驱动器盘符和信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我需要一些代码或参考来检测USB驱动器(无论是否已连接,如果是,它的驱动器号是什么等)



提前致谢。

解决方案

GetLogicalDriveStrings然后GetDriveType


< blockquote>你好我可能会迟到

但是对于正在寻找参考代码的未来用户我在代码项目中找到了类似的样本,但要注意它是在C#



用于检测USB设备的USB库 [ ^ ]



希望这有助于每个人


Hi,

I need some code or reference for detecting an USB drive (whether it is connected or not, if yes what is its drive letter etc.)

Thanks in advance.

解决方案

GetLogicalDriveStrings and then GetDriveType


hello I might be late
but for future users who are looking for a reference code i found a similar sample in code project but to note it is in C#

A USB Library to Detect USB Devices[^]

hope this helps everyone


这篇关于使用C ++检测USB驱动器盘符和信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆