在 Windows Mobile 上获取网络名称(订户名称)
如何在 Windows Mobile 上获取网络名称(用户名称)?
How to get Network Name (Subscriber Name) on Windows Mobile?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
如何在 Windows Mobile 上获取网络名称(用户名称)?
How to get Network Name (Subscriber Name) on Windows Mobile?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
在 microsoft.windowsmobile.status.dll 中程序集
Microsoft.WindowsMobile.Status
的命名空间Microsoft.WindowsMobile.Status
中,您有类SystemState
具有完美匹配的属性PhoneOperatorName
。In the namespace
Microsoft.WindowsMobile.Status
in the assemblyMicrosoft.WindowsMobile.Status
in microsoft.windowsmobile.status.dll, you have the classSystemState
with the perfectly matching propertyPhoneOperatorName
.您可以使用 RIL_GetOperatorList 检索可用运算符的列表。此调用返回的 RILOPERATORINFO 结构数组可能包括 dwStatus 为 RIL_OPSTATUS_CURRENT 的结构,该结构将是您当前连接到的网络运营商的名称。
请注意,对 RIL_GetOperatorList 的调用可能需要相当长的时间才能完成,因为它实际上是在搜索可用网络。
You can use RIL_GetOperatorList to retrieve the list of available operators. The array of RILOPERATORINFO structures returned by this call will likely include one with a dwStatus of RIL_OPSTATUS_CURRENT which will be the name of the network operator you are currently connected to.
Be aware that the call to RIL_GetOperatorList can take quite a few seconds to complete since it is, in effect, searching for available networks.