// 设置本地连接的 IP 地址、子网掩码和网关信息;
WinExec('cmd.exe /c netsh.exe interface ip set address name="本地连接" source=static addr=192.168.1.1 mask=255.255.255.0 gateway=192.168.1.254 gwmetric=1', SW_HIDE);
// 设置本地连接中的第一个 DNS 服务器地址;
WinExec('cmd.exe /c netsh.exe interface ip set dns name="本地连接 source=static addr=219.150.32.132', SW_HIDE);
// 添加本地连接中的第二个 DNS 服务器地址;
WinExec('cmd.exe /c netsh.exe interface ip add dns name="本地连接" addr=202.99.96.68', SW_HIDE);