Windows 系统编程
simonzhao0536
这个作者很懒,什么都没留下…
展开
-
设置静态网络适配器IP地址
操作Windows网络连接相关的API,貌似没有暴漏出设置静态IP的方法,搜索了些资料最后,借助Windows的WMI(Windows Management Instruction) 来操控网络适配器了。方法如下:How to disable dhcp for a specific network adapter?Recently, I am programmi原创 2012-10-11 16:45:08 · 2228 阅读 · 0 评论 -
WMI EnableDHCP fails on disconnected adapter
It seems at least one other person is interested so here's what I found:As far as I can tell it's a bug in WMI. To get around it, what seems to work is to directly set the appropriate registry val原创 2013-01-11 10:36:53 · 748 阅读 · 0 评论