c# windows mobile device information

帅比萌擦擦* 提交于 2019-12-07 02:02:30

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.

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)

MusiGenesis

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!