views:

657

answers:

3
+1  Q: 

WM 5 SDK Symbol

We have a large number of Window Mobile Devices (Symbol MC35 & MC70). I want to write a small app that gets the device serial number and simcard serial number (not phone number). I have tryed using the Symbol SDK and I can get the Device Serial Number for the MC70s as they have a Electronic Serial Number Module. But not sure how to get the Sim Details. If i am unable to get the Device Serial Number From the MC35s can I get the IMEI number?

The porpose behind this is so I can keep a upto date record of what sim is in what handheld as any time. I am going to write the data to a registy file where SOTI Mobile Control will link it to that handheld.

+1  A: 

See here for SIM management functions. I can't find anything for retrieving a SIM ID, if such a thing exists. I suppose that you can identify the SIM by the phone number. Is it possible two different SIMs to have the same phone number? To get the phone number there is the GetPhoneNumber sample in the Windows Mobile SDK.

As for identifying the phone, the correct way is to read the Device ID. Again there is the GetDeviceID sample in the SDK (Both are in Common\CPP\Win32). Copying from the sample's read me:

GetDeviceUniqueID protects the privacy of a device. Multiple applications need to use a device's unique identifier to communicate with servers. To protect a device's privacy, multiple servers should not be able to correlate data from the same device. GetDeviceUniqueID does not use any additional information other than the data that is provided by the application, so any application that passes in the same application data buffer will obtain the same hash. This API can be called be any application regardless of the trust level of the application.

If you want to retrieve the IMEI, see for example here.

kgiannakakis
There must be a way of getting the number from the sim card e.g. phone number or the long number f the sim. I have loked into Get DevicveUniqueID and that work but not sutible for this project.
MartGriff
+2  A: 

You're after the lineGetGeneralInfo TAPI call. You want to look at the subscriber number, which is located using the dwSubscriberNumberSize and dwSubscriberNumberOffset members of the LINEGENERALINFO structure the call returns.

ctacke
A: 

Iam use in Symbol MC 35 device Please kindly send my SDK MC 35 IMEI : 354439010162958