资源简介
本方法采用的基本原理是在WMI的基础上对计算机上的注册表进行扫描查找USB设备,确保能找到所有计算机能识别出来的USB设备,然后加入过滤掉重复部分,最终本软件实现了可以监控设备插拔事件,判定USB设备的连接状态
参考博文http://blog.csdn.net/ericwuhk/article/details/79226505

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HidLibrary;
namespace HidTest
{
public class BlobHid
{
public List DeviceSearch = new List();
public List EnumDevices()
{
DeviceSearch.Clear();
return DeviceSearch = HidDevices.Enumerate().ToList();
}
public class idProduct
{
public const int MotorBoard = 0x10ed;
public const int XhawkDk04 = 0x1000;
public const int DongleTx = 0x10f0;
public const int DongleRx = 0x10f1;
public const int DongleCV1 = 0x10f2;
public const int DongleUsb = 0x10eb;
public const int TestBoard = 0x10ee;
public const int LampBoard = 0x10ec;
public const int Xcobra = 0x10ee;
public const int Camera1280960 = 0x00F9; //added20180125 Device Descriptor
public const int CSRBle = 0x0001; //added20180125 Device Descriptor
}
#region singleton
private static BlobHid ins;
private BlobHid()
{
}
public static BlobHid Only()
{
return ins ?? (ins = new BlobHid());
}
#endregion
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-01-29 20:01 HidTest\
目录 0 2018-02-01 12:24 HidTest\.git\
文件 2581 2018-01-29 19:59 HidTest\.gitattributes
文件 3997 2018-01-29 19:59 HidTest\.gitignore
文件 34 2018-02-01 12:24 HidTest\.git\COMMIT_EDITMSG
文件 691 2018-01-29 19:56 HidTest\.git\config
文件 73 2018-01-29 19:56 HidTest\.git\desc
文件 23 2018-01-29 19:56 HidTest\.git\HEAD
目录 0 2018-01-29 19:56 HidTest\.git\hooks\
文件 177 2018-01-29 19:56 HidTest\.git\hooks\README.sample
文件 2088 2018-02-01 12:24 HidTest\.git\index
目录 0 2018-01-29 19:56 HidTest\.git\info\
文件 113 2018-01-29 19:56 HidTest\.git\info\exclude
目录 0 2018-01-29 19:56 HidTest\.git\logs\
文件 684 2018-02-01 12:24 HidTest\.git\logs\HEAD
目录 0 2018-01-29 19:56 HidTest\.git\logs\refs\
目录 0 2018-01-29 19:56 HidTest\.git\logs\refs\heads\
文件 684 2018-02-01 12:24 HidTest\.git\logs\refs\heads\master
文件 150 2018-01-29 19:56 HidTest\.git\ms-persist.xm
目录 0 2018-02-01 12:24 HidTest\.git\ob
目录 0 2018-01-29 19:56 HidTest\.git\ob
文件 89 2018-01-29 19:56 HidTest\.git\ob
目录 0 2018-01-29 19:56 HidTest\.git\ob
文件 195 2018-01-29 19:56 HidTest\.git\ob
目录 0 2018-01-31 21:46 HidTest\.git\ob
文件 3583 2018-01-31 21:46 HidTest\.git\ob
目录 0 2018-01-29 19:56 HidTest\.git\ob
文件 1863 2018-01-29 19:56 HidTest\.git\ob
目录 0 2018-01-29 19:56 HidTest\.git\ob
文件 751 2018-01-29 19:56 HidTest\.git\ob
目录 0 2018-01-31 21:46 HidTest\.git\ob
............此处省略148个文件信息
相关资源
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- usb hid调试工具
- HID调试助手
- Apolipoprotein E4 Impairs in vivo Hippocampal
- USB.Over.Network.Server 注册机
- 联想W520/T520笔记本电脑电路原理图
- LenovoTinkPad; Marker 5.01
- WPF USB 网络 串口 通信软件
- USB转串口驱动,FT232R驱动程序,最新
- WinCE下CP210x的驱动程序
- hidusage.h hidpi.h 等USB开发用头文件
- DSP28335程序片内FLASH搬运至RAM运行的
- 矩阵基本运算函数库
- 基于JM20329的SATA转USB 1394
- 430系列单片机USBFET下载驱动
- CY7C68013A固件程序(用于摄像机采集)
- Bochs入门教程[操作系统第一步]
- usb调试程序 对USB设备进行数据的读写
- USB 驱动 让电脑与arm进行通信
- USB助手(调试USB通信协议的工具) 源
- 基于FPGA的USB接口设计
- 枚举USB设备接口(C 源代码)
- 多普达USB Modem驱动(适用于818、828、
- lmdb代码——caffe
- 中微子质量和暗物质的模型,具有大
- 浅埋特大采高综采工作面关键层&ldq
- 尼尔森·巴尔放松
- 统一的纳尔逊·巴尔模型
- SN9C291B datasheet
- 希捷公布USB外部硬盘解决方案
评论
共有 条评论