如何直接在Windows 7中从HID驱动程序捕获输入 [英] how to capture inputs from the HID driver directly in Windows 7

查看:302
本文介绍了如何直接在Windows 7中从HID驱动程序捕获输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

背景:
我需要实现一个程序,该程序可以从多个HID获取KB和鼠标事件,并且能够知道它来自哪个HID.

尝试过的解决方案:
1. Winhooks-问题是,我不知道它来自哪个HID
2. RawInputData-可以获取HID事件并将其正确映射到问题所在的设备,我需要阻止OS显示输入

因此,我需要能够在驱动程序之前获取HID输入,而不是通过使用OS已发送的WM_INPUT消息获取它.

有人知道我该怎么做吗?
非常感谢!

Hello,

Background:
I need to implement a program that can get KB and mouse events from several HIDs and be able to know from which HID it came from.

Tried solutions:
1. Winhooks - the problem is, I do not know which HID it came from
2. RawInputData - can get the HID events and map it correctly to the device the problem is, I need to block the input from being displayed by the OS

So I need to be able to get the HID inputs before the driver and not by getting it using WM_INPUT message which is already sent by the OS.

So does anyone know how I can do that?
Thank you very much!

推荐答案

创建您自己的驱动程序.

检查WDDK(Windows驱动程序开发套件)
Create your own driver.

check the WDDK (windows driver development kit)


这篇关于如何直接在Windows 7中从HID驱动程序捕获输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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