如何在 Win Mobile 上检测网络类型 [英] How to detect Network type on Win Mobile

查看:30
本文介绍了如何在 Win Mobile 上检测网络类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了很多时间搜索如何确定当前的网络类型,例如 WIFI、3G、以太网.但是我在windows平台上网上查不到任何资料.

I spend lot of time searching how to determine the current network type such as WIFI, 3G, Ethernet. But I cannot find any information online in windows platform.

我想检测以太网网络类型,但找不到任何可以检索网络类型的 API.我找到了关键字的连接管理器,但信息较少.

I want to detect the Ethernet network type, but I cannot find any API that can retrieve the network type. I've find Connection Manager for keyword but there's less information.

有人知道吗?请帮帮我...我被这个阻止了 2 周.

Did anyone have any idea? Please help me...I was blocked by this for 2 weeks.

谢谢.

推荐答案

Windows Mobile 上有一个 API,可以更轻松地访问这些值,而不是直接访问注册表.请参阅 SystemState 类文档,特别是 ConnectionsNetworkCount 和ConnectionsCount 属性.

There is an API on Windows Mobile that makes it easier to access these values vs. going directly to the registry. See the SystemState class documentation, specifically the ConnectionsNetworkCount and ConnectionsCount properties.

这篇关于如何在 Win Mobile 上检测网络类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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