PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

IMEI

Hello,
1.
Using ecd.device->GetIMEI seems to work very nice on all symbian based phones we tested our apps. But tests on HTC Wizzard and FS with WM5 did result in a blank string. We compiled with the EdgeBuilder for PPC2002 and PPC 2005. The Model, System and Owner has been shown corectly.
2.
To include system dependent code we wanted to use folowing define statement:
#if defined(DEVICE_WIN32)
estrcpy(puffer,"111111-00-222222-3");
#else
ecd.device->GetIMEI(puffer,true);
#endif

but encountered, that the WM5 powered devices also acted as WIN32. Or, did we used a wrong symbol?

with kind regards,
Hi Yucani,

Unfortunately, receiving IMEI on a Windows Mobile device requires a restricted API. These API's require your application to be signed.

We recommend using GetOwnerName for Windows Mobile to receive a unique device identification string. When selling your application through Handango or Clickgamer, they will ask for the owner name as well.

Even easier is to use ClassERegister::GetRegistrationId.