Symbian C++ API 积累(病毒分析时参考)
//获取手机IMEI
CTelephony ::GetSubscriberId()
CTelephony ::GetPhoneId(TRequestStatus&, TDes8 &)
CTelephony ::Version()
CTelephony ::TPhoneIdV1::TPhoneIdV1(void)
// 获取手机IMSI号码
CTelephony::GetSubscriberId(TRequestStatus &,TDes8 &)
RMobilePhone::TMobilePhoneSubscriberId iImsi;
TRequestStatus iImsiStatus;
RTelServer::TPhoneInfo info;
User::LeaveIfError(iServer.Connect());
User::LeaveIfError(iServer.GetPhoneInfo(0, info));
User::LeaveIfError(iPhone.Open(iServer, info.iName));
iPhone.GetSubscriberId(iImsiStatus, iImsi);
User::WaitForRequest(iImsiStatus);
PrintBuf(iImsi);
// 获取手机信号强度
CTelephony :: GetSignalStrength(TRequestStatus&, TDes8 &);
// 获取手机电量信息
CTelephony :: GetBatteryInfo(TRequestStatus&, TDes8 &);
// 获取手机的指示器信息
CTelephony :: GetIndicator(TRequestStatus&, TDes8 &);
// 设置短信的创建时间,在msventry里面设置的无效
CSmsDeliver& deliver = mySmsHeader->Deliver();
TTime nowTime;
nowTime.HomeTime();
deliver.SetServiceCenterTimeStamp(nowTime);
//短信拦截
TSmsAddr smsaddr;
smsaddr.SetSmsAddrFamily(ESmsAddrSendOnly);
smsaddr.SetTextMatch(TDesC8 const &);
smsaddr.SetPort(smsaddr.Port() + 1);
//获取短信号码
CSmsPDU::ToFromAddress(void);
//base64编码
TImCodecB64::Encode(TDesC8 const&,TDes8 &)
//base64解码
TImCodecB64::Decode(TDesC8 const&,TDes8 &)