WndProc in my WPF app not 'handling' WM_INPUT event

北慕城南 提交于 2019-12-06 01:06:16

After long hours of Googling, it looks like someone else has already described and solved what I'm trying to do using a UMDF: http://oblita.com/Interception

I was hoping I wouldn't have to go there, but it's looking like this is the only way to actually intercept events coming from a particular device.

iDream

I also had this problem, and I solved it by running my application with Administrator privileges.

It seems that the WM_INPUT message is subject to the UIPI (User Interface Privilege Isolation). Check out the reference here:

SendMessage, PostMessage, and Related Functions

Although the method DefWindowProc() will deliver the message, it does not process it to the next application. But if there is an application that’s running as Administrator, such as Task Manager, Window Device Manager and so on, the lower privileges application can not received some of window messages delivered from the application mentioned above. This problem is not only the WN_IPUT, but alse the Hook.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!