Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

disabling ctrl-alt-del in win2k

Posted on 2001-06-27
7
308 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 50

Expert Comment

by:Ryan Chong
ID: 6230526
<interesting!>
0
 
LVL 28

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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

840 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