Disabling Keys: CTRL, ALT, ESC, Window key 
Author Message
 Disabling Keys: CTRL, ALT, ESC, Window key

        Has ANYBODY found a sucessful way to disable the CTRL, ALT, ESC, and
the Window key (the one that brings up the start menu) in Windows 95 using
Visual Basic, or even a C DLL?  I need to write a security program that will
not allow users to hit CTRL-ALT-DEL and end the security program.  I also need
to prevent them from using the window from activing the start menu, or in use
with another key to bring up the run dialog box, or run an application.  I
need to disable ALT-TAB and ALT-ESC from switching to another application.  
Does ANYBODY have a solution to this?

                               ___      __
  |)  \/  /\  |\ |    /\  |\ |  |  |/  /  \  \    / |   /\  |/
  |\  /  /--\ | \|   /--\ | \|  |  |\  \__/   \/\/  |  /--\ |\


---   http://www.*-*-*.com/



Sat, 30 Jan 1999 03:00:00 GMT  
 Disabling Keys: CTRL, ALT, ESC, Window key

: I need to disable ALT-TAB and ALT-ESC from switching to another application.
: Does ANYBODY have a solution to this?

This may not be the best possible solution, but I have disabled ALT-TAB in
an application of mine, so I know at least this much can be done.  I simply
used my form's Key_Down event procedure to intercept and clear the keypress.
It isn't hard.  You can check for an ALT keypress by doing an And operation
on the "Shift" value (using the appropriate mask) and testing for non-zero.
The other trick is that there's a property on the form that must be enabled
so that it previews all key activity.

Try using the VB Help.  If you can't figure it out, E-mail me and I can send
a copy of my code to illustrate how to do it.



Sun, 31 Jan 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Block System Key like ALT+TAB, Ctrl+Alt+Del, Ctrl+Esc key

2. disable keys like "key WIN", ctrl-ESC, ALT-TAB

3. How to cancel Windows System keys (CTRL+ESC, ALT+TAB)

4. Disable Alt+Tab, Ctrl+Esc, Ctrl+Shift+Esc...

5. Disable CTRL ALT DELETE, CTRL ESC, and ALT TAB with VB5/NT40

6. Disable (Ctrl+Alt+Del),(Ctrl+Esc),(Alt+Tab) in NT

7. Disable ctrl+esc ctrl+alt+del alt+tab

8. Disable the CTRL ALT DELETE, CTRL ESC, ALT TAB

9. Disable (Ctrl+Alt+Del),(Ctrl+Esc),(Alt+Tab) in NT

10. Disabling task keys (ctrl, alt, delete etc) in Windows NT 4

11. Disabling task keys - ctrl, alt, delete etc - in Windows NT 4

12. Disable CTRL-ESC and CTRL-ALT-DEL

 

 
Powered by phpBB® Forum Software