检测USB连接(VID和PID)C# [英] Detect USB Connection (VID & PID) C#
本文介绍了检测USB连接(VID和PID)C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过我的C#应用程序检测连接到我的电脑的USB设备。我曾尝试使用libusbdotnet www.sourceforge.net/projects/libusbdotnet.com ,但它并未显示任何设备甚至已连接。如何检测USB连接或更多,连接的USB设备的供应商ID或产品ID?
I want to detect the usb devices connected to my pc through my C# application. I have tried using libusbdotnet www.sourceforge.net/projects/libusbdotnet.com but it doesn't show that any devices are even connected. How can I detect a usb connection or further more, the vendor ID or Product Id of a connected usb device?
推荐答案
我在几年前发现的一些很酷的文章:
http://www.storelocatorplus.com/检测-usb-insertionremoval-in-c-net-4-0 / [ ^ ]
http://www.c-sharpcorner.com/Blogs/14227/detect-insertion-and-removal-of-usb-drive -C-Sharp.aspx [ ^ ]
这也是:
用于检测USB设备的USB库 [ ^ ]
在C#程序中检测USB驱动器的移除 [ ^ ]
-KR
Kind of cool articles I found years ago:
http://www.storelocatorplus.com/detecting-usb-insertionremoval-in-c-net-4-0/[^]
http://www.c-sharpcorner.com/Blogs/14227/detect-insertion-and-removal-of-usb-drive-C-Sharp.aspx[^]
And this too:
A USB Library to Detect USB Devices[^]
Detecting USB Drive Removal in a C# Program[^]
-KR
这篇关于检测USB连接(VID和PID)C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文