如何使我的无线网络具有静态IP或动态IP [英] how to get my wireless network has static ip or dynamic

查看:75
本文介绍了如何使我的无线网络具有静态IP或动态IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想检查我的无线ip是否具有静态ip或DHCP,所以请帮助我调用哪个函数?

在此先感谢....

解决方案

您的答案依赖于Win32 API类,您可以使用System.Managments dll在.NET中访问这些类,但是您需要知道如何使用它们,这是Win32中网络设备类API的链接,请阅读并学习如何在C#或C ++中使用Win32类:

http://msdn.microsoft.com/en-us/library/aa389273 (VS.85).aspx#_hmm_networking_device_classes [ 解决方案

Your answer relies withen Win32 API classes, you can access these classes in .NET using System.Managments dll, but you need to know how to use them, here is a link for the Networking Devices Classes APIs in Win32, read it and learn how to use Win32 classes in C# or C++:

http://msdn.microsoft.com/en-us/library/aa389273(VS.85).aspx#_hmm_networking_device_classes[^]


You can use the following WMI query :

SELECT * FROM Win32_NetworkAdapterConfiguration


DHCPEnabled field is what you are looking for.


can write the code please for graphic mode; on how to invoke the library and also as import and how to use the library.


这篇关于如何使我的无线网络具有静态IP或动态IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆