GetRawInputDeviceList和GetRawInputDeviceInfo无法在Win10中工作。 [英] GetRawInputDeviceList and GetRawInputDeviceInfo fail to work in Win10.

查看:290
本文介绍了GetRawInputDeviceList和GetRawInputDeviceInfo无法在Win10中工作。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我用过  GetRawInputDeviceList    GetRawInputDeviceinfo  用于监控插入PC的人机输入设备。
在Win7和Win8中运行良好。但是,有线的事情发生在Win10中。



设备在  RIM_TYPEHID  只有当它插入PC时才能检测到类型,但即使拔掉它也可以在列表中找到它。它适用于类型设备  RIM_TYPEMOUSE  和 RIM_TYPEKEYBOARD。



有没有人发现同样的问题?我想知道这是否是MS的错误。如果可以肯定的话,我是否有任何其他解决方案可以监控人机接口设备的插拔?拔掉我的电脑?感谢您的帮助。

解决方案

Hello
upma_display


根据您的描述,此问题与Windows桌面开发有关,我帮助将其移至桌面论坛。当前论坛适用于Windows运行时开发。


对于遇到的情况,因为它可以在Windows 7和8中正常工作,而不是在新的Windows系统中工作,我建议您可以发布反馈:


https://connect.microsoft.com/VisualStudio


问候。


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.

解决方案

Hello upma_display,

According to your description, this issue is related with windows desktop development, I help move it to the desktop forum. The current forum is for windows runtime development.

For your encountered scenario, since it could work fine in both windows 7 and 8, and not work in the new windows system, I suggest you could post a feedback to:

https://connect.microsoft.com/VisualStudio

Regards.


这篇关于GetRawInputDeviceList和GetRawInputDeviceInfo无法在Win10中工作。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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