识别当前的Internet连接 [英] Identifying Current Internet Connection

查看:124
本文介绍了识别当前的Internet连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在MFC(VS2010)中有一个应用程序,它通过加密狗,Wi-Fi,LAN连接到互联网。我想确定我的应用程序连接到哪个连接。另外,我是否可以根据我的选择控制我的应用程序连接这两个选项。



Regds

解决方案

< blockquote>我认为你可以使用 InternetGetConnectedState() InternetGetConnectedStateEx()来了解您是否'连接到LAN或MODEM。



有关控制的更多信息,请查看以下链接:

http://msdn.microsoft.com/en-us/library/windows/desktop/ee663286 (v = vs.85)的.aspx

Hi,

I have a application in MFC (VS2010) which connects to the internet via dongle,wi-fi,LAN. I want to identify to which connection my application is connected. Also whether I can control the my application connection either of these options based on my selection.

Regds

解决方案

I think you can use InternetGetConnectedState() or InternetGetConnectedStateEx() to know whether you're connected to LAN or MODEM.

For more information about controlling, check this link:
http://msdn.microsoft.com/en-us/library/windows/desktop/ee663286(v=vs.85).aspx


这篇关于识别当前的Internet连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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