Win7中的挂钩问题 [英] Hooking Problem in Win7

查看:85
本文介绍了Win7中的挂钩问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我获得了用于钩住keyevent的示例代码.
它适用于winxp,但不适用于win7.
该示例代码使用SetWindowsHookEx和LowLevelKeyboardProc API.
我试图找出解决方案,但失败了.
有谁知道原因吗?

Hi I got the sample code for hooking keyevent.
It works on winxp but not on win7.
The sample code uses SetWindowsHookEx & LowLevelKeyboardProc API.
I tried to find out the solution, but I failed.
Is there anyone who knows the reason?

Thanks in advice.

推荐答案

您可能需要在Win7中以提升的特权运行应用程序.
右键单击EXE,然后选择以管理员身份运行".
You probably need to run the application with elevated privileges in Win7.
Right click on the EXE and select "Run as administrator".


这篇关于Win7中的挂钩问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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