检测 Pocket PC 上的 WiFi 连接
我正在尝试以编程方式检测 Pocket PC 是否有 wifi 连接。检测任何连接可能都会起作用,因为 wifi 将是唯一的可能性。
一旦检测到连接,就会从网络服务下载数据。
我正在使用 VB 进行开发,但使用 C# 则可以。
在 Windows Mobile 上,来自 Microsoft.WindowsMobile.Status
的 SystemState
类可以工作,但在 Pocket PC 上不可用。一个等效的就很好了,但我找不到。
很可能有可以使用的制造商 API,但我不希望与制造商绑定。 我也不允许使用任何第三方,这排除了获得现成的解决方案。
感谢您的任何建议
I am trying to programmatically detect if a Pocket PC has a wifi connection or not. Detecting any connection would probably work, as wifi will be the only possibility.
Once a connection is detected data will be downloaded from a web service.
I am developing in VB but anything in C# is fine.
On Windows Mobile there is the SystemState
class from Microsoft.WindowsMobile.Status
which would work, but this is not available on Pocket PC. An equivalent would be excellent but I can't find one.
There may well be a manufactures API that could be used, but I would prefer not to be tied to a manufacturer.
I am also not allowed to use anything third party, which rules out getting an off the shelf solution.
Thanks for any suggestions
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
发送一个 UDP 数据包到不会造成损害的地方并检查是否出错
Send a UDP packet to somwhere where it will do no harm and check if it errors out
您使用的是哪个版本的 PocketPC?
因为我在 Windows Mobile Standard 和 Windows Mobile Professional (PPC) 上使用了 Microsoft.WindowsMobile.Status 命名空间。
In which version of PocketPC are you working?
Because I have used Microsoft.WindowsMobile.Status namespace on Windows Mobile Standard and Windows Mobile Professional (PPC).