找回密码
 加入
搜索
查看: 3723|回复: 2

[系统综合] 调用DhcpNotifyConfigChange,不重起Windows直接更改IP地址 失败

[复制链接]
发表于 2010-11-27 15:29:22 | 显示全部楼层 |阅读模式
根据这篇文章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)
运行完后变这样,结果还是要禁用,再启用连接后才能生效

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2010-11-27 19:55:47 | 显示全部楼层
楼主,怎么不用批处理改IP呢,效果也是一样的,不用重启电脑的。
 楼主| 发表于 2010-11-28 10:36:57 | 显示全部楼层
谢谢19377708 的回复,搜了一下,找到一篇http://bbs.wmzhe.com/thread-113580-1-1.html
不懂批处理,慢慢研究下怎么结合到AU3中
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-21 16:39 , Processed in 0.075773 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表