461 Subj : disabling the keyboard To : borland.public.cpp.borlandcpp From : Jesus A Bermudez Silva Date : Fri Apr 30 2004 10:45 am I am not sure whether this is the right newsgroup to post this message, but I looked around at the different newsgroups Borland has and nothing else seemed appropriate. If I have chosen the wrong newsgroup I apologize. Thanks in advance for any replies. I have an application developed in BC++ 5.02, using MFC 4.1 and runs mainly in Windows XP. I need to disable the keyboard, to be more concrete I need to disable keystrokes such as ctrl-alt-del, alt-tab, alt-esc. What I have tried is to set a CBT hook procedure and in there remove what seemed relevant HCBT_SYSCOMMAND Windows messages, but I have had no success. The best I have done is disable the Microsoft key. The CBTProc I place in a dll and I check every system call to ensure that they succeed. Ie. I make sure that the dll is loaded correctly, that the address of the CBTProc is obtained correctly, etc. If anyone has any suggestions I would greatly appreciate it. Once again thanks Jesus . 0