Solved

disabling ctrl-alt-del in win2k

Posted on 2001-06-27
7
306 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
ID: 6230523
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
ID: 6230526
<interesting!>
0
 
LVL 27

Expert Comment

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

Cheers
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 10

Expert Comment

by:caraf_g
ID: 6230683
>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
ID: 6231789
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
ID: 6231852
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
ID: 6237614
thanks for the info
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

920 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

14 Experts available now in Live!

Get 1:1 Help Now