如何检索IPv6配置是否为DHCP? DNS是自动或手动的吗? [英] How to retrieve the IPv6 configration is DHCP or not? And DNS is automatice or manual?

查看:302
本文介绍了如何检索IPv6配置是否为DHCP? DNS是自动或手动的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人可以帮助我?


我找到了API  GetAdaptersAddresses()可以  检索
与本地计算机上的适配器关联的地址。


但我没有找到任何  参数表示
ip configration是DHCP。


我想知道:



如何检索"自动获取IPv6地址"和"使用以下IPv6地址"中选中的项目?



以及如何检索"自动获取DNS服务器地址"和"使用以下DNS服务器地址"中检查的项目?













 


解决方案

On 7/9/2012 10:57 AM,Weason Lin写道:


我发现API GetAdaptersAddresses()可以检索与本地计算机上的适配器关联的地址。



但我没有找到任何参数表明ip configration是DHCP。


请参阅GetAdaptersInfo,特别是IP_ADAPTER_INFO :: DhcpEnabled。


Is there anybody can help me?

I find the API GetAdaptersAddresses() can retrieves the addresses associated with the adapters on the local computer.

But I don't find any parameter indicates the ip configration is DHCP.

I wanna know :

How to retrieve which item is checked in "Obtain an IPv6 address automatically" and "Use the following IPv6 address"?

And how to retrieve which item is checked in "Obtain DNS server address automatically" and "Use the following DNS server addresses"?



 

解决方案

On 7/9/2012 10:57 AM, Weason Lin wrote:

I find the API GetAdaptersAddresses() can retrieves the addresses associated with the adapters on the local computer.

But I don't find any parameter indicates the ip configration is DHCP.

See GetAdaptersInfo, in particular IP_ADAPTER_INFO::DhcpEnabled.


这篇关于如何检索IPv6配置是否为DHCP? DNS是自动或手动的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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