Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to disable specific keys using key hooks. i don't want to use event handler. i want to implement windows hook to disable keys like ctrl, alt, shift and function keys. need the running code i have no time for r&d. tried several codes but not working.. i have tried these
http://www.aghausman.net/dotnet/disable-special-keys-in-win-app-c.html[^]
http://blogs.msdn.com/b/toub/archive/2006/05/03/589423.aspx[^]
Posted
Comments
Sandeep Mewara 24-Feb-11 4:38am    
"Need the running code i have no time for r&d." :doh:
Prerak Patel 24-Feb-11 4:44am    
:omg: and here we all are free to get the code!!!

1 solution

You should revisit this page http://blogs.msdn.com/b/toub/archive/2006/05/03/589423.aspx[^] and read all of the comments to that blog entry. Then you'd know where you had gone wrong.
I bet you just grabbed the code and never took the time to read the whole page. It did'nt take me more than 5 minutes.

Cheers!
 
Share this answer
 
v2
Comments
Obaid Ahmed 24-Feb-11 7:05am    
you are absolutely rite Manfred :), he didn't want to read the full page, may be he want a cake :p :D
Tiwari Avinash 24-Feb-11 8:31am    
yup! as i told at this movement i really need a cake. but the party is over
Espen Harlinn 25-Feb-11 7:35am    
Nice reply - my 5

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