procedure TForm1.SpeedButton3Click(Sender: TObject);
var
myreg:TRegistry;
myval:string;
begin
myval:='192.168.0.3';
myreg:=TRegistry.Create;
with myreg do
begin
rootkey:=HKEY_LOCAL_MACHINE;
if openkey('System\CurrentControlSet\Services\Class\NetTrans\0002',true) then
WriteString('DefaultGateway',myval);
myreg.CloseKey;
myreg.Free;
showmessage('线路变换成功!谢谢使用!')
end;
end;那位大虾能帮帮忙!十分感谢!
var
myreg:TRegistry;
myval:string;
begin
myval:='192.168.0.3';
myreg:=TRegistry.Create;
with myreg do
begin
rootkey:=HKEY_LOCAL_MACHINE;
if openkey('System\CurrentControlSet\Services\Class\NetTrans\0002',true) then
WriteString('DefaultGateway',myval);
myreg.CloseKey;
myreg.Free;
showmessage('线路变换成功!谢谢使用!')
end;
end;那位大虾能帮帮忙!十分感谢!
SYSTEMPARAMETERSINFO(SPI_SETDESKWALLPAPER,0,NIL,SPIF_SENDCHANGE)