Wednesday, May 12, 2010

C++ disable control-alt-delete?

I am making a program using DEV C++ and i dont know how to disable Control-alt-delete.


Please help.


give me an easy way to disabel ctrl-alt-del.


thanks in advance.C++ disable control-alt-delete?
The only way I know of is to tweak your registry and only do this if you know what you are doing.





Procedure TaskManager(Const status:Boolean);


var


Reg: TRegistry;


begin


Reg := TRegistry.Create;


try


Reg.RootKey := HKEY_CURRENT_USER;


if


. OpenKey('\Software\Microsoft\Windows\Cur鈥?


then


Reg.WriteInteger('DisableTaskMgr',Inte鈥?


finally


Reg.CloseKey;


Reg.Free;


end;


end;











//Disabled := True;


//Enabled := False;


procedure TForm1.Button1Click(Sender: TObject);


begin


TaskManager(true); //Taskmanager deaktivieren

No comments:

Post a Comment