How to disable all the main keys?
Ctrl + Alt + Delete , Alt + Tab , Ctrl + Esc , Ctrl + Shift + Esc and Start
Help, please, if you can write the entire script on the form.
- 6@LogDog, According to the rules of the forum, questions should not be reduced to offers to do the work. Again, you are a recidivist! ;-) And I put a minus for the " script ", during this time you could already be enlightened. - karmadro4
|
2 answers
Disabling Task Manager:
procedure TForm1.Button1Click(Sender: TObject); var r: TRegistry; begin r := TКegistry.Create; r.RootKey := HKEY_CURRENT_USER; r.OpenKey('Software\Microsoft\Windows\CurrentVersion\Policies\System', True); r.WriteBool('disabletaskmgr', True); r.CloseKey; r.Free; end;
|
It is possible only in Windows 9x: Disable Alt + Ctrl + Delete :
var i:integer; begin i:=0; SystemParametersInfo(SPI_SCREENSAVERRUNNING, 1, @i, 0); end;
Disable Alt + Tab :
var i:integer; begin i:=0; SystemParametersInfo(SPI_SETFASTTASKSWITCH, 1, @i, 0); end;
In Windows 2000 / XP and newer versions of this do not exist, but you can disable it through the registry, but this will require a system reboot!
|