Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
Read IMEI in S60 2nd edition - PlpVariant API
Perform following steps to read IMEI in S60 2nd Edition development.
#include <plpvariant.h> //For getting IMEI
Link against: (in your .mmp file)
LIBRARY PlpVariant.lib //For getting IMEI
Copy-Paste following code snippet in your fucntion.
//For getting IMEI
// This only works on target machine
// Return a fake IMEI when working on emulator
iImei16.Copy(machineid);// You will have IMEI in iImei16 16-bit descriptor variable