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
Printable View
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
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
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)
The above code will only work in Win 9x
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
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.
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?
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.
That's right yeah.Quote:
Originally posted by Cogen
Michael_Kamen ... how do you know he's not? Might as well give him all of the information. :)
Why is it evil? I use this all the time to prevent my security programs from being shut down.Quote:
phanbachloc ... why would you want to do this? It sounds pretty evil to me.
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. :)