检测互联网V.本地lan连接 [英] Detect Internet V. local lan connection

查看:109
本文介绍了检测互联网V.本地lan连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有反正Windows api来检测Windows 7计算机的网络连接是否是互联网连接或无线网络连接的局域网连接?
Windows 7和Vista在网络图标(仅限本地v。本地和互联网)中指示这一点,是否总是以系统方式获取该信息?

Is there anyway with Windows api to detect whether a Windows 7 computer's network connection is an internet connection or a LAN connection without internet access? Windows 7 and Vista indicate this in the network icon (Local only v. Local and Internet), is there anyway to grab that information progammatically?

推荐答案

http:// msdn。 microsoft.com/en-us/library/aa370750(VS.85).aspx 描述了 IsConnected IsConnectedToInternet之间的区别。仅Windows 7。我没有本地代码示例方便,对不起。

http://msdn.microsoft.com/en-us/library/aa370750(VS.85).aspx describes the difference between IsConnected and IsConnectedToInternet. Windows 7 only. I don't have a native code sample handy, sorry.

这篇关于检测互联网V.本地lan连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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