Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Visual Basic (Microsoft) Versions 5/6 FAQ

Windows API

Can I trap(hook) Ctrl-Alt-Del using VB? by vanvb
Posted: 30 Jun 03

The short answer is: You can't.

Here is the reason taken from the windows logon screen:
"To log on, hold down the Ctrl and Alt keys, then press the Delete key. This key combination is recognized only by Windows, so pressing it before loggin on ensures that you are giving your password only to Windows."

While this is from the Logon screen, the same thing applies to trying to trap it after logon. This is because Windows also does things like changing passwords, etc. from the C-A-D screen that it doesn't want any other program to trap and impersonate.

Because this is a Windows security issue, there is no easy way to beat it. The only way seen around here so far is to write your own GINA. Here is some information regarding writing your own GINA from Strongm:
1) You really, really don't want to mess with MSGINA
2) You really, really don't want to write your own GINA, it is highly complex, and very low-level
3) You cannot write a GINA in VB

A quick look at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/winlogon_and_gina.asp may be enough to convince you that you don't want to mess with this stuff...
There are a few threads that can be found on this site regarding this topic. A good one to look at because it explores a bit about the GINA is:

Back to Visual Basic (Microsoft) Versions 5/6 FAQ Index
Back to Visual Basic (Microsoft) Versions 5/6 Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close