获取所有接口上的所有IPv6地址(Windows) [英] Get all IPv6 addresses on all interfaces (Windows)

查看:84
本文介绍了获取所有接口上的所有IPv6地址(Windows)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用WMI的解决方案,不幸的是,仅在Windows Vista及更高版本上.在WinXP/2003上,WMI仅返回IPv4地址.有什么方法可以在WinXP上获取所有分配的地址,包括IPv6地址?

I have a solution using WMI, unfortunately only on Windows Vista and above. On WinXP/2003 WMI will only return IPv4 adresses. Is there any way to get all assigned addresses including IPv6 ones on WinXP?

Adt:没有.NET,请只提供WMI或WinAPI.

Adt: No .NET, just WMI or WinAPI please.

推荐答案

嗯,经过几个小时的谷歌搜索,我终于找到了

Well, after some more hours of googling, I finally found GetAdaptersAddresses() in the MSDN library.

有时候您只是使用了错误的搜索字词.

Sometimes you just use the wrong search terms it seems.

这篇关于获取所有接口上的所有IPv6地址(Windows)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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