问题描述
我用过 GetRawInputDeviceList GetRawInputDeviceinfo 用于监控插入PC的人机输入设备。
在Win7和Win8中运行良好。但是,有线的事情发生在Win10中。
设备在 RIM_TYPEHID 只有当它插入PC时才能检测到类型,但即使拔掉它也可以在列表中找到它。它适用于类型设备 RIM_TYPEMOUSE 和 RIM_TYPEKEYBOARD。
有没有人发现同样的问题?我想知道这是否是MS的错误。如果可以肯定的话,我是否有任何其他解决方案可以监控人机接口设备的插拔?拔掉我的电脑?感谢您的帮助。
I've used GetRawInputDeviceList and GetRawInputDeviceinfo to monitor the Human Input Device plugged into my PC. It works fine in Win7 and Win8. However, wired things happen in Win10.
The device in RIM_TYPEHID type can be detected only when it's plugged into the PC but you can still find it in the list even unplugging it. It works fine for the device in type RIM_TYPEMOUSE andRIM_TYPEKEYBOARD.
Is there anyone who finds the same problem? I wonder whether it's a bug of MS. If sure, is there any other solution for me to monitor the human interface device plugging & unplugging from my PC? Thanks for your help in advance.
这篇关于GetRawInputDeviceList和GetRawInputDeviceInfo无法在Win10中工作。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!