Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
Exchange Links About this site Links to us 
|
Disable Ctrl-Alt-Del and Alt-Tab
10 comments. Current rating: (1 votes). Leave comments and/ or rate it.
Issues:
The program should be nice and small so it can load before a user can hit CTRL-ALT-DEL.
Solution:
Compile a single WIN32API call into a small .exe in delphi.
Note:
This was written for Delphi 2 (thus Unit name WINPROCS) and the code actually only works under Windows 3.x and 95/98.
 | |  | | program small;
uses WinProcs;
var
Dummy : integer;
begin
Dummy := 0;
SystemParametersInfo( SPI_SETFASTTASKSWITCH, 1, @Dummy, 0);
SystemParametersInfo( SPI_SCREENSAVERRUNNING, 1, @Dummy, 0);
end. | |  | |  | You don't like the formatting? Check out SourceCoder then!
Comments:
|
|
|
|
i want to know how to disable CTRL-ATL-DEL in Win2k / WinXP?
i found a shareware component called dWinLock. the component can disable it and other winkey combination even the 'winkey' on the keyboard. the problem is its a shareware
waiting for you kind reply
thanks in advance
norman
|
|
|
|
|
Sorry wrong click....
|
|
|
|
|
disable CTRL-ATL-DEL in Win2k / WinXP:
uses
registry;
Procedure TaskManager(Const status:Boolean);
var
Reg: TRegistry;
begin
Reg := TRegistry.Create;
try
Reg.RootKey := HKEY_CURRENT_USER;
if
. OpenKey('\Software\Microsoft\Windows\CurrentVersion\Policiesies\System',True)
then
Reg.WriteInteger('DisableTaskMgr',Integer(Status));
finally
Reg.CloseKey;
Reg.Free;
end;
end;
//Disabled := True;
//Enabled := False;
procedure TForm1.Button1Click(Sender: TObject);
begin
TaskManager(true); //Taskmanager deaktivieren
end;
|
|
|
|
|
this code it's wrong!
|
|
|
|
|
program small;
{written by rleigh@deakin.edu.au (Richard Leigh, Deakin Univesity 1997}
uses WinProcs;
{$R *.RES}
var
Dummy : integer;
begin
Dummy := 0;
{Disable ALT-TAB}
SystemParametersInfo( SPI_SETFASTTASKSWITCH, 1, @Dummy, 0);
{Disable CTRL-ALT-DEL}
SystemParametersInfo( SPI_SCREENSAVERRUNNING, 1, @Dummy, 0);
end.
//This code did not work on vista.
|
|
|
|
|
i want to know how to disable CTRL+ALT in WinXP/vista/WinServer2008 ?
i don't know how to do it ,and i looking for the code for a long time ,but i did't find it ,can u help me with it ? thanks , my e-mail:guo_qiang@live.com
thanks
|
|
|
|
|
fact u
|
|
|
|
|
|
|
|
|
|
thanks for all of u , i have already resolve this problem, but the code i forgot now, but i will post it here when i use my own computer, the code is on my own computer...
thanks again
|
|