Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ctrl-alt-del

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am writing an app in which it is critical that the use not be able to use ctrl-alt-del or alt-tab. I have tried o couple of vb programs. The one using the screenseaverrunning and the one using the user32 library using enable windows and iswindowsenable. These did not seem to work in 2K. Anyone have any suggestions?

Thank in advance
Joel
 
I've just submitted a FAQ on this subject (It's come up at least 4 times prior to this).

But basically, under NT/2000, you cannot filter the Ctrl-Alt-Del keystroke out, since the operating system uses it as it's Secure Attention Sequence. If anyone could decide they didn't like it, then the operating system would not longer be secure, which would be bad :-(

It is possible to filter out the Alt-Tab keystroke by writing your own keyboard driver. You'll need the device-driver development kit for this.

If you want to authenticate users via your own methods, you can write a Gina DLL (see the sample that ships with VC++). A Gina DLL gets called after the SAS is detected, and allows you to authenticate users in your own manner. Be careful in writing one -- you can easily lock yourself out of your system!

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top