C
cf83325
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TMyRegistry.Root3;
var
RegFile : TRegistry;
begin
try
RegFile := TRegistry.Create;
RegFile.RootKey := HKEY_LOCAL_MACHINE;
if RegFile.OpenKey('/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters' , True) then
begin
RegFile.WriteInteger('SackOpts' , 00000001);
RegFile.WriteInteger('GlobalMaxTcpWindowSize' , 0003e640);
//郁闷啊,这里我要创建DWord类型,读入十六进制,这里编译不能通过
//默认的好像是以十进制写入注册表的,我改成WriteFloat,写入的却是二进制类型
end;
finally
RegFile.CloseKey;
RegFile.Free;
end;
end;
var
RegFile : TRegistry;
begin
try
RegFile := TRegistry.Create;
RegFile.RootKey := HKEY_LOCAL_MACHINE;
if RegFile.OpenKey('/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters' , True) then
begin
RegFile.WriteInteger('SackOpts' , 00000001);
RegFile.WriteInteger('GlobalMaxTcpWindowSize' , 0003e640);
//郁闷啊,这里我要创建DWord类型,读入十六进制,这里编译不能通过
//默认的好像是以十进制写入注册表的,我改成WriteFloat,写入的却是二进制类型
end;
finally
RegFile.CloseKey;
RegFile.Free;
end;
end;