Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

You probably need to run the application with elevated privileges in Win7.
Right click on the EXE and select "Run as administrator".
 
Share this answer
 
Comments
Dalek Dave 20-Oct-10 3:38am    
Seems Reasonable.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900