Page 1 of 1

Disable the "special" keys

PostPosted: August 10th, 2006, 3:20 am
by Codius
I'm looking for a way to disable the special keys on a keyboard, such as ALT+F4, ALT+TAB, CTRL+ESC, WindowsKey, AppKey and so on..
I've been told that dWinLock is the best and easiest way to do this, but I don't want to use someone elses DLL file :/
I've been looking a little at keyboard hooking, trying to just recieve the key and don't send it, but it doesn't work :(

Any help/code will be helpful.
Thanks in advance, Codius

PostPosted: August 10th, 2006, 8:48 am
by Johnny_Bit
you don't need such stuff like extarnal dll's, simply use winapi keyboardhook (more on msdn). it's few lines of code and it's simple like hello world