c# windows mobile设备信息
我用谷歌搜索并搜索了这个主题,但找不到任何好的答案。
我怎样才能获得手机的 IMEI,或者至少是一个唯一的 ID。我也有兴趣通过SIM卡查找电话号码。现在我使用系统状态来获取所有者的电话号码,但只有当所有者自己设置时才设置
I have googled and searched after this topic, but could not find any good answer.
How can i get the imei for the phone, or at least a unique id. I am also interested in finding the phonenumber through the simcard. Right now im using the systemstate to get the owner's phonenumber, but that is only set if the owner has set it himself
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您确实需要 IMEI,请查看此博客:
http://dotnetslackers.com/Community/blogs/ruslantrifonov/archive/2007/07/10/_2200_How-To_2200_-Series_3A00_-检索- IMSI-and-IMEI-on-Windows-Mobile.aspx
它包含一个演示使用 lineGetGeneralInfo 通过 TAPI 检索 IMEI 和 IMEI国际移动用户识别码。
If you really need the IMEI, have a look at this blog:
http://dotnetslackers.com/Community/blogs/ruslantrifonov/archive/2007/07/10/_2200_How-To_2200_-Series_3A00_-Retrieving-IMSI-and-IMEI-on-Windows-Mobile.aspx
it contains a download which demonstrates using lineGetGeneralInfo via TAPI to retrieve IMEI & IMSI.
如果对您有帮助的话,可以使用EXE来检索IMSI。
我在移动团队博客上发现了一个 GetDeviceUniqueID 函数 (链接),应该根据他们所说的给你一个唯一的ID(浏览文章)
There is this EXE to retrieve the IMSI if that helps you.
And I found a GetDeviceUniqueID function on the Mobile Team Blog (link), should give you a unique ID according to what they said (skimmed through the article)
请参阅之前的问题:
Windows CE 设备的唯一计算机 ID
据我所知,您想要做的事情在 Windows Mobile 设备上实际上是不可能的。我认为一个简单的替代方案(可能有效也可能无效,具体取决于您的目的)是在应用程序第一次运行时将随机 GUID 写入设备注册表中的某个位置,然后使用它来唯一标识设备。
See this earlier question:
Unique Machine ID for a Windows CE Device
As far as I can tell, what you want to do is not really possible on a Windows Mobile device. I think a simple alternative (which may or may not work, depending on your purposes) is to write a random GUID into the device's Registry somewhere the first time your application is run, and then use that to uniquely identify the device.
由于安全限制,通过 TAPI 的 IMEI 和 IMSI 并不总是适用于较新的设备。在我认为 6.1 之前,设备 UniqueId 调用不需要工作。一些整车厂没有实施。
The IMEI and IMSI via TAPI thing doesn't always work on newer devices due to security restrictions. The device UniqueId calls were not required to be working until I think 6.1. Some OEMs did not implement.