You Are Here:

Community: Wiki

This page was last modified on 7 May 2007, at 05:23.

Read IMEI in S60 2nd edition - PlpVariant API

From Forum Nokia Wiki

Perform following steps to read IMEI in S60 2nd Edition development.

Include:

#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;
PlpVariant::GetMachineIdL(machineid);
#else
// Return a fake IMEI when working on emulator
_LIT(machineid, "123450987685263");
#endif
 
iImei16.Copy(machineid);// You will have IMEI in iImei16 16-bit descriptor variable

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia