: :
This message was edited by Development at 2005-8-16 9:49:53
: :
: : procedure DisableTaskManager();
: : var DTM: Tregistry;
: : begin
: : DTM:= tregistry.Create;
: : DTM.RootKey:= HKEY_CURRENT_USER;
: : DTM.OpenKey('Software\Microsoft\Windows\CurrentVersion\Policies\system\',false);
: : DTM.WriteInteger('DisableTaskMgr',1);
: : DTM.Free;
: : end;
: :
: :
: : procedure EnableTaskManager();
: : var ETM: Tregistry;
: : begin
: : ETM:= tregistry.Create;
: : ETM.RootKey:= HKEY_CURRENT_USER;
: : ETM.OpenKey('Software\Microsoft\Windows\CurrentVersion\Policies\system\',false);
: : ETM.WriteInteger('DisableTaskMgr',0);
: : ETM.Free;
: : end;
: :
: :
: :
: : procedure TForm1.RadioButton2Click(Sender: TObject);
: : begin
: : EnableTaskManager;
: : end;
: :
: : procedure TForm1.RadioButton1Click(Sender: TObject);
: : begin
: : DisableTaskManager;
: : end;
: :
: :
: : hope this helps
: :
:
: Hi
:
: It didnt work it gaved an Exception error, i looked in my HKEY_CURRENT_USER and couldnt find
: 'Software\Microsoft\Windows\CurrentVersion\Policies\system\
: at policies is a 'Explorer' not a 'System' and i serched all
: the regedit and couldnt find 'DisableTaskMgr' key.
:
: Whats wrong ???
:
try this site http://www.pscode.com/vb/scripts/BrowseCategoryOrSearchResults.asp?txtCriteria=ctrl&blnWorldDropDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=10&blnResetAllVariables=TRUE&lngWId=7&B1=Quick+Search&optSort=Alphabetical
Slewis