Discussion in 'Questions (Windows Mobile)' started by gjoisa, Jun 25, 2008.
how to write code to get the IMEI number of the device ?
Unfortunately, this method don't work on all devices (on HTC P3600(Trinity) it returns a blank string)
You could also try here http://www.basic4ppc.com/forum/additional-libraries/1490-radio-interface-layer-dzril-dll.html
Thank you Elrick . But it does not work on my device (Imate) . One error message comes "An error occured on sub_app_start. An error message can not be displayed because an optional resource assembly containing it cannot be found . Continue ?" . Why so ?
You should use "db2000 GetInfoDevice.zip" from post #13, if you don't. If you use it and it still don't work - it's better to ask maXim (because he made this lib) or agraham (because he is agraham )
You can load the optional resource from there, post #2
this will not solve the problem but you will get a more explicit error message.
Sorry . This also does not work . Dear Maxim what is the way ?
You can also try to get the MAC Address form the device....See Agraham's dll on the OpenNet thread on the chitchat....
Temporarily I am using Hardware.dll's device Id for protecting my application . After getting device id i save it as string in application . While running application first check the device id and the saved string and if both are matching then application runs . But why Icant get the imei ?
Have you tryed This?:http://www.basic4ppc.com/forum/additional-libraries/2151-imei-protection.html