且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用C ++检测USB驱动器盘符和信息

更新时间:2022-10-15 17:56:19

GetLogicalDriveStrings然后GetDriveType


你好我可能会迟到

但是对于正在寻找参考代码的未来用户我在代码项目中找到了类似的样本,但要注意它是在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