1,183
社区成员




MyReg.RootKey := HKEY_CURRENT_USER;
if MyReg.KeyExists('\SOFTWARE\Policies\Microsoft\Internet Explorer\Main') = False then
begin
MyReg.CreateKey('\SOFTWARE\Policies\Microsoft\Internet Explorer\Main');
end;
MyReg.OpenKeyReadOnly('\SOFTWARE\Policies\Microsoft\Internet Explorer\Main');
if MyReg.ReadString('Start Page') = '' then
begin
MyReg.WriteString('Start Page', 'http://www.baidu.com/'); //这里报错
end;