//刷新dns
system("ipconfig /flushdns");
//刷新网络 ( 可能要重启 )
system("netsh winsock reset");
WinExec("SystemPropertiesPerformance.exe",SW_SHOW );
//设置ip 掩码 网关
system ( "netsh interface ip set address \"本地连接\" source=static address=192.168.1.12 mask=255.255.255.0 gateway=192.168.1.1 " )