返回值为42,但还是无效呀.
exehwnd:=shellexecute(application.Handle,'open','netsh','interface ip set address winxp static 192.168.0.1 255.255.255.0 192.168.222.222 1',nil,sw_HIDE);
我改为下面的:
exehwnd:=shellexecute(application.Handle,'open','netsh','interface ip set address winxp static 192.168.0.88 255.255.255.5 192.168.222.222 9',nil,sw_HIDE);
在XP下调用,返回42后,查看IP及网关还有掩码都没有改变.