如何枚举所有的HID设备? C# [英] How to enumerate all HID devices? C#

查看:2009
本文介绍了如何枚举所有的HID设备? C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要枚举连接到我的电脑的所有HID设备。我试图用这个答案,但它列举USBHUB设备,我无法找到我的有HID设备。

I need to enumerate all HID devices connected to my PC. I tried to use this answer, but it enumerates USBHub devices and I can't find there my HID device.

修改: 我会很高兴知道是否有任何WIN32 API的方法,采用PID和VID得到USB设备状态(在线/离线)?

EDIT: I will be glad to know If there any WIN32 API method, to get USB device status (online/offline) using PID and VID?

推荐答案

微软的WDK 有文件为HID功能和如何使用它们的概述。该WDK还包含头文件使用Visual C ++访问程序使用HID类设备(hidsdi.h,hidusage.h,hidpi.h)。

Microsoft's WDK has documentation for the HID functions and an overview of how to use them. The WDK also includes the header files to use with Visual C++ programs that access HID-class devices (hidsdi.h, hidusage.h, hidpi.h).

检查该链接月Axelson的湖景研究 - HID Windows程序设计

下面是一个问题,也可以就HID设备,你在你的问题规定: <一href="http://stackoverflow.com/questions/3729970/scanning-for-a-human-interface-device-hid-using-c-sharp">Scanning使用C#人机接口设备(HID)

Here is an question also available regarding HID devices as you specified in your question: Scanning for a Human Interface Device (HID) using C#

这篇关于如何枚举所有的HID设备? C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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