网关IP地址 [英] Gateway IP address

查看:92
本文介绍了网关IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

确定网关的IP地址需要哪些API函数?我花了很长时间在Google上搜索,但是我所能找到的只是有关检索主机IP地址的信息.我也在MSDN上进行了搜索,但都没有找到有关它们的任何信息.

谢谢,
Lloyd

Which API function(s) are needed to determine the IP address of the gateway? I''ve spent ages searching around on google, but all I could find was information on retrieving the host IP address. I have also searched on MSDN, but have not found any information on their either.

Thanks,
Lloyd

推荐答案

您将要使用WMI和Win32_NetworkAdapterConfiguration类.我在NetworkInformation命名空间中找不到网关公开的任何内容.

实际上有一个CP项目此处 [
You''re going to want to use WMI and the Win32_NetworkAdapterConfiguration class. I can''t find anything that''s exposed for gateway in the NetworkInformation namespace.

There''s actually a CP project here[^] on it.

Cheers.


这篇关于网关IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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