Solved

disabling ctrl-alt-del in win2k

Posted on 2001-06-27
7
304 Views
Last Modified: 2006-11-17
Okay i realize that calling SystemParametersInfo (SPI_SETSCREENSAVERRUNNING) can disable ctrl-alt-del in win98 but not for win2k. In win2k one must use a low level keyboard hook. My question is this, can it be done in VB?
If someone can code this for me (i know very little about the API) the points will go to 750!.
Thanks
0
Comment
Question by:cybermoonlight
7 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 200 total points
Comment Utility
Sorry cybermoonlight, this is a frequently asked but as yet unsatisfactorily answered question. The Ctrl-Alt-Delete keypress is not handled by Windows in the normal way, it is interpreted by the system and passed to the GINA.DLL (Graphical Identification and Authentication) before it is processed by the keyboard handler. Thus you cannot use a low-level keyboard hook to deal with it. (You couldn't write this in straight VB anyway as the low-level hook needs a callback procedure in a Standard DLL which you cannot create using VB (it only creates ActiveX dlls). It is possible to rewrite the GINA.DLL yourself and there are in fact guidelines on how to do this with VC++ from the Microsoft Platform SDK available from Microsoft's website. However (and this is a very BIG however), I have not found anyone willing to take this on, it is an extremely complex task and most people look at it and think - "Maybe not this time I will try a different approach".

Hope this helps (well at least with the understanding if not a solution).
0
 
LVL 49

Expert Comment

by:Ryan Chong
Comment Utility
<interesting!>
0
 
LVL 27

Expert Comment

by:Ark
Comment Utility
Hi
Take alook at http://www.thescarms.com/vbasic/stopreboot.asp
There is an example for NT at the bottom of page.

Cheers
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 10

Expert Comment

by:caraf_g
Comment Utility
>points will go to 750
No they won't. The maximum number of points EE will allow you spend on one question is 300...

Anyway. That's beside the point. It can't be done. Definitely not in Win2K. And just as well.
0
 
LVL 2

Author Comment

by:cybermoonlight
Comment Utility
oh well, thescarms option is not viable..even if this works the disabling of the key sequences is permanenet until the registry is changed and the p rebooted..I need to disable and enable at will.
I thankytou for your info on the gina dll. This does sound daunting..maybe i will give it a go when i have more info on the GINA. Are you sure the gina dll intercepts the key sequencs beofre the keyboard handler?
Also i saw a KB article on the MS site that said it could be done via   a low level keyboard hook..
If it can then i could develop the disabler in C and call it from VB when needed.
Any more info ???
0
 
LVL 2

Author Comment

by:cybermoonlight
Comment Utility
oh well, thescarms option is not viable..even if this works the disabling of the key sequences is permanenet until the registry is changed and the p rebooted..I need to disable and enable at will.
I thankytou for your info on the gina dll. This does sound daunting..maybe i will give it a go when i have more info on the GINA. Are you sure the gina dll intercepts the key sequencs beofre the keyboard handler?
Also i saw a KB article on the MS site that said it could be done via   a low level keyboard hook..
If it can then i could develop the disabler in C and call it from VB when needed.
Any more info ???
0
 
LVL 2

Author Comment

by:cybermoonlight
Comment Utility
thanks for the info
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now