Source language: Translate to:

Disable Ctrl+Alt+Del on W2K or NT?

NeoBook tips, tricks, code samples and more...

Moderator: Neosoft Support

Disable Ctrl+Alt+Del on W2K or NT?

Postby Jim Brammer » Thu Feb 07, 2002 6:13 pm

Hi!

anyone have time for a question from a newbee?

How do i disable ctrl-alt-del on W2K or NT?

The built in command in NB 4 doesn't work with either.

Thanks in advance!

/JT


--------------------------------------------------------------


Hello there ,

You Can't disable the right mouse click in WinNT and Win2K and Probaly WinXP.

and the reason why is Because Microsoft, decided that it should be done. so Neosoft will not be able to help, on that issue, no can actually,. and the only way you can disable the rigth mouse click is by creating a New KeyBoard Driver that Hooks to the Keyboard before the Kernell Does which will require istallation and rebooting the System.

so i Don't know who would take the time to design you the driver because it is not an easy task.

jay.
Jim Brammer
 

Disable Ctrl+Alt+Del on W2K or NT?

Postby WalterG » Tue Nov 12, 2002 11:41 am

I just run into the ctrl-alt-del question (9 months late):

To disable ctrl-alt-del you must set the API-Function
"SystemParametersInfos" directly.

Here is a solution in Visual Basic to call the API Function:

Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction as Long, ByVal uParam as Long, lpvParam as Any, ByVal fuWinIni as Long) as Long

Dim OldValue as Boolean
Dim RetVal as Long
Dim SysParam as Long

SysParam = 97    ' (Value fir SPI_SCREENSAVERRUNING)

' Deactivate Ctrl-Alt Del
RetVal = SystemParametersInfo (SysParam, True, OldValue, 0)

' Activate Ctrl-Alt Del
RetVal = SystemParametersInfo (SysParam, False, OldValue, 0)
WalterG
 

Disable Ctrl+Alt+Del on W2K or NT?

Postby J » Tue Dec 10, 2002 7:37 am

Thanks WalterG!

i will try this...very interesting...

/J
:)
J
 

Disable Ctrl+Alt+Del on W2K or NT?

Postby Jay » Sun Feb 16, 2003 11:13 pm

That Won't do it in Win2K .
all the above Function does is make windows think that you have a Cressn saver in session... which will probably work in Win9x but not win2k if you are still insterest in Disabling the Ctrl Alt Del in Win@K i can alwasy create you a plug-in but it will require you or your user to reboot their system once in order for this to work...
Let me know ...
Jay
 

Disable Ctrl+Alt+Del on W2K or NT?

Postby Ronnie » Mon Feb 17, 2003 5:20 am

Jim,

The commands like SysParam stuff won't work...  as MS has changed some of the settings in XP.. and also by default enable the task bar to be shown on top of any full screen applications. So what this mean is that even if you set your NeoBook project as full screen, the task bar will still be shown.  The same applies to all games that  are usually launched as full screen mode.  


I have uploaded a sample utility to disable/enable Ctrl-Alt-Del in XP..   can anyone verify whether it works?

The URL is - http://www.ronmarie.com/test/Test.zip




(Edited by Ronnie at 3:49 pm on Feb. 17, 2003)
Ronnie
 

Disable Ctrl+Alt+Del on W2K or NT?

Postby Jay » Tue Feb 18, 2003 12:06 am

This disables the Task Manager in Win2K.... and not the Alt Ctrl Del, but it does serve the Purpose...

good work roonie...
if you don't mind me asking what API did you use? or was it a registry change...?

(Edited by Jay at 2:17 am on Feb. 18, 2003)
Jay
 

Disable Ctrl+Alt+Del on W2K or NT?

Postby Ronnie » Tue Feb 18, 2003 7:48 am

Yeah... right on.. got the code only minutes before posting the mail yesterday... 'hot from the source', so to speak.


procedure DisableTaskMgr(bTF: Boolean);
var
 reg: TRegistry;
begin
 reg := TRegistry.Create;
 reg.RootKey := HKEY_CURRENT_USER;

 reg.OpenKey('Software', True);
 reg.OpenKey('Microsoft', True);
 reg.OpenKey('Windows', True);
 reg.OpenKey('CurrentVersion', True);
 reg.OpenKey('Policies', True);
 reg.OpenKey('System', True);

 if bTF = True then
 begin
   reg.WriteString('DisableTaskMgr', '1');
 end
 else if bTF = False then
 begin
   reg.DeleteValue('DisableTaskMgr');
 end;
 reg.CloseKey;
end;

// Example Call:
procedure TForm1.Button1Click(Sender: TObject);
begin
 DisableTaskMgr(True);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
 DisableTaskMgr(False);
end;



Actually.. since it's a registry change... I believe you can also change the DisableTaskMgr value using NeoBook's registry functions.
Ronnie
 

Disable Ctrl+Alt+Del on W2K or NT?

Postby Jay » Tue Feb 18, 2003 10:06 pm

Thank you for sharing the code: now here is how to do it from NeoBook with one simple line:

To Disable the Task Manager use the following script:

RegistryWrite "HKEY_CURRENT_USER" "Software\Microsoft\Windows\CurrentVersion\policies\system\DisableTaskMgr" "1"

To Enable the Task Manager use this one:

RegistryWrite "HKEY_CURRENT_USER" "Software\Microsoft\Windows\CurrentVersion\policies\system\DisableTaskMgr" "10"

Enjoy !!!
Jay
 

Disable Ctrl+Alt+Del on W2K or NT?

Postby Ronnie » Wed Feb 19, 2003 5:10 am

Jay,

Aiya... I was hoping some other users (not you) who can come up with a script in NeoBook, using the sample code provided I've provided.  

With some effort..  I believe everyone of you reading this mail will also be able to come up with the one-liner registry code too.. even if Jay did not post the code at all.

Ah.. that's the wonderful thing about NeoBook.. and the community - we learn and share our experiences...
Ronnie
 

Disable Ctrl+Alt+Del on W2K or NT?

Postby phunkadelic » Tue Apr 22, 2003 5:56 am

Quote: from Jay on 6:06 am on Feb. 19, 2003




To Enable the Task Manager use this one:

RegistryWrite "HKEY_CURRENT_USER" "Software\Microsoft\Windows\CurrentVersion\policies\system\DisableTaskMgr" "10"



i doubt that will work jay. it should be

RegistryWrite "HKEY_CURRENT_USER" "Software\Microsoft\Windows\CurrentVersion\policies\system\DisableTaskMgr" "0"

10 makes no sense... :)
phunkadelic
 

Disable Ctrl+Alt+Del on W2K or NT?

Postby Jay » Thu Apr 24, 2003 9:54 pm

Beleive me 0 will  not work and 10 will work... try it your self.... and you said it doesn't make sense, well welcome to the windows world. :)

(Edited by Jay at 12:55 am on April 25, 2003)
Jay
 

Disable Ctrl+Alt+Del on W2K or NT?

Postby DaveJ » Thu Jun 12, 2003 8:48 am

Maybe of use to some people who want to mess with the registry if they are suicidal..

All the windows 2000 registry entries including 'disabletaskmgr'

http://www.microsoft.com/windows2000/te ... egAZBd.asp

(Edited by DaveJ at 11:51 am on June 12, 2003)
DaveJ
 


Return to NeoBook Knowledgebase

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron