|
-
Sep 14th, 2002, 10:12 PM
#1
Thread Starter
Addicted Member
Ctrl+alt+del?????
When u press "CTRL+ALT+DEL",you can close the program running.So can u tell me if theres anyway to prevent closing he program FROM pressing "ctrl+alt+del"?
THANK YOU FOR ANY HELP
-
Sep 15th, 2002, 01:40 PM
#2
Hyperactive Member
You can disable Ctrl-Alt-Del on NT and 2K but this is very risky. It can prevent you from ever being able to log on again!
Be sure to enable Automatic Logon by specifying DefaultDomainName, DefaultUserName, DefaultPassword and AutoAdminLogin in the registry under Windows Login. Otherwise you will not be able to logon again. See Knowledge Base article Q114615 for details
-
Sep 15th, 2002, 04:04 PM
#3
Banned
Yes u can:
VB Code:
Public Declare Function SystemParametersInfo Lib _
"user32" Alias "SystemParametersInfoA" (ByVal uAction _
As Long, ByVal uParam As Long, ByVal lpvParam As Any, _
ByVal fuWinIni As Long) As Long
Sub DisableKeys(bDisabled As Boolean)
Dim X As Long
X = SystemParametersInfo(97, bDisabled, CStr(1), 0)
End Sub
'To disable Ctrl-Alt-Del etc use this:
DisableKeys (True)
'Use this in your Form_Unload to re-enable the keys:
DisableKeys(False)
-
Sep 16th, 2002, 03:31 AM
#4
PowerPoster
The above code will only work in Win 9x
-
Sep 16th, 2002, 08:14 AM
#5
I believe the best you can do on NT based machines is to prevent the app from showing in the task list, but I don't think you can block Ctrl-Alt-Del
-
Sep 16th, 2002, 08:55 AM
#6
PowerPoster
You can prevent the task list from appearing using a registry tweak. Other than that, if you really want to block Ctrl-Alt-Del on Win NT, you will have to use VC to create a dll which will replace MSGina.dll. Search on MSDN for more information on GINA.
-
Sep 16th, 2002, 12:18 PM
#7
Banned
Am I going blind and mad? I can't find the word 'NT' in the question. How do you guys know he's asking it for Win NT?
-
Sep 16th, 2002, 01:21 PM
#8
Junior Member
Michael_Kamen ... how do you know he's not? Might as well give him all of the information. 
phanbachloc ... why would you want to do this? It sounds pretty evil to me.
-
Sep 16th, 2002, 02:50 PM
#9
Banned
Originally posted by Cogen
Michael_Kamen ... how do you know he's not? Might as well give him all of the information. 
That's right yeah.
phanbachloc ... why would you want to do this? It sounds pretty evil to me.
Why is it evil? I use this all the time to prevent my security programs from being shut down.
-
Sep 17th, 2002, 12:19 AM
#10
Junior Member
Sorry, I don't mean to imply that phanbachloc is actually doing something evil, as you stated, some people use it for good intentions as with your security programs. I personally just like hearing the reason behind why someone wants to do something like that when they ask. If you are making an application for a business, then there could be a valid reason, however the ctrl-alt-delete combination is there for a reason, and to make a distributed application that takes away from the users right to use those hot keys can be a mistake in many situations. If I download a program that disables ctrl-alt-delete, there better be a good reason, otherwise it's getting uninstalled pretty quickly.
Just my opinion though.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|