Solved

Disable ctl+alt+delete (Windows 2000)

Posted on 2002-03-28
8
283 Views
Last Modified: 2010-05-02
Is there a way to disable ctl+alt+delete while a VB app is running?

0
Comment
Question by:CArnold
8 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 6904049
look at

http://www.experts-exchange.com/visualbasic/Q.20281105.html

it refers to a site
Download...
http://www.vb-helper.com/HowTo/ctlaltd.zip
Description: Disable Ctl-Alt-Del (2K)

good luck
mlmcc
0
 
LVL 1

Author Comment

by:CArnold
ID: 6905087
I think I researched a link similar to that one in my quest for a solution.  It doesn't work with Windows 2000.  Nonetheless, your response and help is very much appreciated, mlmcc.

I've found code and registry settings for Windows 95 and 98, but I haven't found anything for Windows 2000.

Any more suggestions?

CArnold
0
 

Expert Comment

by:vbAngel
ID: 6907822
Hi CArnold,
Have a look at this - I think it works all right.

Public Declare Function SystemParametersInfo2 Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long
    Public Const SPI_SCREENSAVERRUNNING = 97


Sub WinAppDisable()
Dim append As Long

'disables Ctrl+Alt+Del
append& = SystemParametersInfo2(SPI_SCREENSAVERRUNNING, True, False, 0)
End Eub


Sub WinAppEnable()
Dim append As Long

'enables Ctrl+Alt+Del
append& = SystemParametersInfo2(SPI_SCREENSAVERRUNNING, False, True, 0)

End Sub


Hope it helps,
vbAngel
0
ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
LVL 1

Expert Comment

by:BenBen
ID: 6909607
You just can't do it!

ctrl alt del (CAD) is a Secure Attention Sequence, you KNOW that, on a 2k sys, when you press CAD that you have the attention of the OS. This prevents someone from getting you to enter a password into a trojan CAD screen.

So, there is no real way to have your VB program dissable CAD.

Now, technically, if you modify the GINA dll (the thing that does the login screen, and the CAD screen) you could dissable CAD when your VB program was running. However, the replacement GINA would have to be made in C++, and if not done correctly would really screw up the system. I know of no open source examples of a GINA dll. To find out more about GINA, take a look at this:

http://msdn.microsoft.com/library/?url=/library/en-us/security/security/about_winlogon_and_gina.asp?frame=true
0
 
LVL 1

Author Comment

by:CArnold
ID: 6911075
BenBen,
   You answer is the most substantive one I've recieved thus far.  I have only tentatively rejected your answer in order to keep this question open for more input.  If I do not receive an answer contrary to yours before Friday evening, I will award you the points.  Please place a comment (any comment will do) so that I can award the points to you if the answer I'm desiring does not surface.  Thanks for your help!

vbAngel,
   I've attempted your proposed solution without desired results.  :(
   Looks like Win2K is a hard nut to crack.

CArnold
0
 
LVL 1

Accepted Solution

by:
BenBen earned 200 total points
ID: 6911566
comment for points
0
 
LVL 1

Author Comment

by:CArnold
ID: 6921046
BenBen,
Looks like your answer was the best one!  I'm still looking into making my own GINA dll file.  I had a quick question, for you or anyone else that may be capable of answering...

I'm assuming that the GINA file is "officially" considered a system file.  I attended a Microsoft's Windows 2000 debut conference where the speaker introduced Win2K and displayed some of the new features of the operating system.  One of these features was a safety feature where Win2k would not allow you to delete or write over any system files.  (The speaker demonstrated this feature by deleting the "Recycle Bin" and then going into the Windows Explorer to show that Windows denied deletion of the Recycle Bin).  
Will Win2K allow me to replace this system file?  

Thanks for the link.  
CArnold
0
 
LVL 1

Author Comment

by:CArnold
ID: 6921048
Thanks, again!
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

770 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