调用DhcpNotifyConfigChange,不重起Windows直接更改IP地址 失败
根据这篇文章http://apps.hi.baidu.com/share/detail/4888972,调用dhcpcsvc.dll中的DhcpNotifyConfigChange函数,不重启Windows直接更改IP地址失败。DllCall("dhcpcsvc.dll","bool","DhcpNotifyConfigChange","wstr",0,"wstr","{98CC88B8-F828-4A37-BC50-3E70987A36A5}","bool",True,"dword",0,"dword","192.168.1.125","dword","255.255.255.0","int",0)运行完后变这样,结果还是要禁用,再启用连接后才能生效 楼主,怎么不用批处理改IP呢,效果也是一样的,不用重启电脑的。 谢谢19377708 的回复,搜了一下,找到一篇http://bbs.wmzhe.com/thread-113580-1-1.html不懂批处理,慢慢研究下怎么结合到AU3中
页:
[1]