Disable the windows key using C#
-
hi, iam doing one project here ia wana to disable the windows key in keyboard by using C#.net2005 can u suggest me give some source code related to this problem...
So super glue did not work then. Did the link supplied last time help at all.[^]
Never underestimate the power of human stupidity RAH
-
hi, iam doing one project here ia wana to disable the windows key in keyboard by using C#.net2005 can u suggest me give some source code related to this problem...
http://www.codeproject.com/KB/system/CSLLKeyboard.aspx[^][^]
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
hi, iam doing one project here ia wana to disable the windows key in keyboard by using C#.net2005 can u suggest me give some source code related to this problem...
You need to install a keyboard hook (You don't need a low-level hook for your purpose). The first option would be to search and use one of the things already written in C#. (Hint: another user has already given you a link to such an article) Secondly, there are plenty of hooks already written in as DLLs in C++ and you can just use one of those from your C# app after modifying the C++ code to trap the Windows key (0x5B and 0x5C) and ensuring the exported calling convention in the DLL is 'right' for your use. Thirdly, you can read the docs and write your own hook and give me a shock! Now - you've been asking this for a while. Where *exactly* is the problem and what code have you written so far?
Cheers, Rajesh R Subramanian.
It is a crappy thing, but it's life -^ Carlo Pallini