Q
qiubole
Unregistered / Unconfirmed
GUEST, unregistred user!
我要恢复注册表中被别人禁的允许编辑项
procedure TForm1.Button1Click(Sender: TObject);
var
reg:tRegistry;
begin
reg:=tregistry.Create;
reg.RootKey:=HKEY_CURRENT_USER;
if reg.OpenKey('/Software/Micorsoft/Windows/CurrentVersion/policies/system/DisableRegistryTools',true) then
showmessage('打开');
if reg.Deletekey('/Software/Micorsoft/Windows/CurrentVersion/policies/system/DisableRegistryTools') then
showmessage('成功');
reg.closekey;
reg.Free;
end;
end.
结果显示成功,但我还可以读那个键的数据呀
procedure TForm1.Button1Click(Sender: TObject);
var
reg:tRegistry;
begin
reg:=tregistry.Create;
reg.RootKey:=HKEY_CURRENT_USER;
if reg.OpenKey('/Software/Micorsoft/Windows/CurrentVersion/policies/system/DisableRegistryTools',true) then
showmessage('打开');
if reg.Deletekey('/Software/Micorsoft/Windows/CurrentVersion/policies/system/DisableRegistryTools') then
showmessage('成功');
reg.closekey;
reg.Free;
end;
end.
结果显示成功,但我还可以读那个键的数据呀