Solved

disabling ctrl-alt-del in win2k

Posted on 2001-06-27
7
309 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
[X]
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
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 51

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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

733 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