最近工作需要获取手机型号
在网上找到了资料. 谢谢作者了.
头文件:
#include
库:
hal.lib
代码:
void getphonemodel(tdes& amodebuf )
{
tint machineuid=0;
hal::get (haldata::emachineuid, machineuid );
switch (machineuid )
{
case 0x10200f9b:
{
amodebuf = _l("nokia 6682");
break;
}
case 0x10200f9c:
{
amodebuf = _l("nokia 6681");
break;
}
case 0x10200f99:
{
amodebuf = _l("nokia 6680");
break;
}
case 0x101fbb55:
{
amodebuf = _l("nokia 6630 ");
break;
}
case 0x101fb3f3:
{
amodebuf = _l("nokia 7610");
break;
}
case 0x101f3ee3:
{
amodebuf = _l("nokia 6620");
break;
}
case 0x101fb3f4:
{
amodebuf = _l("nokia 6260");
break;
}
case 0x10200f97:
{
amodebuf = _l("nokia 3230");
break;
}
case 0x101fb3dd:
{
//nokia 6600
amodebuf = _l("nokia 6600");
break;
}
}
}
不过这个最好是直接返回machineuid ,让服务器做 匹配.因为客户端写死了以后有新型号就不号匹配了.
如果喜欢symbian 获取手机型号 - symbian请收藏或告诉您的好朋友.
阅读(184) | 评论(0) | 转发(0) |