Ikky
Ikky

Reputation: 2856

c# windows mobile device information

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

Upvotes: 1

Views: 4231

Answers (4)

Hayes Haugen
Hayes Haugen

Reputation: 822

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.

Upvotes: 0

Matt Lacey
Matt Lacey

Reputation: 65564

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.

Upvotes: 2

Shaihi
Shaihi

Reputation: 3974

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)

Upvotes: 2

MusiGenesis
MusiGenesis

Reputation: 75296

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.

Upvotes: 0

Related Questions