Read IMEI in S60 2nd edition - PlpVariant API

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Created: kiran10182 (30 Apr 2007)
Last edited: hamishwillee (25 Jul 2012)

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.

TBuf16<20> iImei16;
//For getting IMEI
#ifndef __WINS__
// This only works on target machine
TPlpVariantMachineId machineid;
// Return a fake IMEI when working on emulator
_LIT(machineid, "123450987685263");
iImei16.Copy(machineid);// You will have IMEI in iImei16 16-bit descriptor variable
This page was last modified on 25 July 2012, at 02:10.
29 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.