5,391
社区成员
发帖
与我相关
我的任务
分享
ARegistry:=TRegistry.Create;
ARegistry.RootKey:=HKEY_LOCAL_MACHINE;
if ARegistry.OpenKey('SOFTWARE\Microsoft\Windows\CurrentVersion\Run',false) then
regrun:=ARegistry.ReadString('360Safetray');
ARegistry.CloseKey;
if ARegistry.OpenKey('SOFTWARE\Microsoft\Windows\CurrentVersion\Run',true) then
begin
ARegistry.WriteString('360Safetray1','bbb');
end;