4406|9

71

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

請問有關SimWriteMessage這隻程序的問題 [复制链接]

請問一下各位高手!!
小弟在調用到這隻程序時
就會一直返回下面的錯誤訊息
E_INVALIDARG   (0x80070057L)
再找了下文章之後
發現像是SimSetLockingStatus 這類的
這也是特權API
所以想請教一下~~  
有沒有高手可以教導小弟一下~   
如何才可以成功調用特權API!!!
萬分感激!!!

最新回复

发表于:2009-01-14 13:46:137楼 得分:30 要不就把你的应用签名了,再试试 ------------------------------ 请教你,应用怎么签名啊? 期盼早日回答,十分感谢  详情 回复 发表于 2009-4-8 09:06
点赞 关注

回复
举报

63

帖子

0

TA的资源

一粒金砂(初级)

沙发
 
0x80070057是参数不正确呀
 
 

回复

69

帖子

0

TA的资源

一粒金砂(初级)

板凳
 
U大可以幫我看一下CODE嗎?
小弟的CODE如下

        SIMMESSAGE SimMessage;
        DWORD lpdwIndex = NULL;
        SYSTEMTIME ST;
        HRESULT hr = S_OK;
        memset(&SimMessage, 0, sizeof(SimMessage));

        SimMessage.cbSize = sizeof(SimMessage);
        SimMessage.dwParams = SIM_PARAM_PBE_ALL;   
        SimMessage.dwAddressType = SIM_ADDRTYPE_NATIONAL;   
        SimMessage.dwNumPlan = SIM_NUMPLAN_TELEPHONE;   
        memcpy(&(SimMessage.stReceiveTime), &ST, sizeof(SYSTEMTIME));   
        wcscpy(SimMessage.lpszAddress, TEXT("111111111"));     
        wcscpy(SimMessage.lpszMessage, TEXT("GOGOGO"));   

        hr = SimWriteMessage(g_hSim, SIM_SMSSTORAGE_SIM, &lpdwIndex, &SimMessage);

小弟完全不知道哪個參數有問題~~><~
只要調用SUCCESS~~立刻給分~~
感激!!
 
 
 

回复

69

帖子

0

TA的资源

一粒金砂(初级)

4
 
SimInitialize 初始化成功了没有?
 
 
 

回复

73

帖子

0

TA的资源

一粒金砂(中级)

5
 
还有,确认没有SIM Manager Error Constants 中的错误出现么?
 
 
 

回复

85

帖子

0

TA的资源

一粒金砂(初级)

6
 
Constant  Description  
SIM_E_SIMFAILURE
SIM failure was detected.

SIM_E_SIMBUSY
SIM is busy.

SIM_E_SIMWRONG
Inorrect SIM was inserted.

SIM_E_NOSIMMSGSTORAGE
SIM isn't capable of storing messages.

SIM_E_SIMTOOLKITBUSY
SIM Application Toolkit is busy.

SIM_E_SIMDOWNLOADERROR
SIM data download error.

SIM_E_SIMNOTINSERTED
SIM isn't inserted into the phone.

SIM_E_PHSIMPINREQUIRED
PH-SIM PIN is required to perform this operation.

SIM_E_PHFSIMPINREQUIRED
PH-FSIM PIN is required to perform this operation.

SIM_E_PHFSIMPUKREQUIRED
PH-FSIM PUK is required to perform this operation.

SIM_E_SIMPINREQUIRED
SIM PIN is required to perform this operation.

SIM_E_SIMPUKREQUIRED
SIM PUK is required to perform this operation.

SIM_E_INCORRECTPASSWORD
Incorrect password was supplied.

SIM_E_SIMPIN2REQUIRED
SIM PIN2 is required to perform this operation.

SIM_E_SIMPUK2REQUIRED
SIM PUK2 is required to perform this operation.

SIM_E_NETWKPINREQUIRED
Network Personalization PIN is required to perform this operation.

SIM_E_NETWKPUKREQUIRED
Network Personalization PUK is required to perform this operation.

SIM_E_SUBSETPINREQUIRED
Network Subset Personalization PIN is required to perform this operation.

SIM_E_SUBSETPUKREQUIRED
Network Subset Personalization PUK is required to perform this operation.

SIM_E_SVCPINREQUIRED
Service Provider Personalization PIN is required to perform this operation.

SIM_E_SVCPUKREQUIRED
Service Provider Personalization PUK is required to perform this operation.

SIM_E_CORPPINREQUIRED
Corporate Personalization PIN is required to perform this operation.

SIM_E_CORPPUKREQUIRED
Corporate Personalization PUK is required to perform this operation.

SIM_E_MEMORYFULL
Storage memory is full.

SIM_E_INVALIDINDEX
Invalid storage index was supplied.

SIM_E_NOTFOUND
A requested storage entry was not found.

SIM_E_MEMORYFAILURE
Storage memory failure.

SIM_E_SIMMSGSTORAGEFULL
Message storage on the SIM is full.

SIM_E_EMPTYINDEX
Storage location is empty.

SIM_E_NOTREADY
SIM isn't yet ready to perform the requested operation.

SIM_E_SECURITYFAILURE
SIM isn't yet ready to perform the requested operation.

SIM_E_BUFFERTOOSMALL
Buffer too small.

SIM_E_NOTTEXTMESSAGE
Requested Short Message Service (SMS) message is not a text message.

SIM_E_NOSIM
Device doesn't have a SIM.

SIM_E_NETWORKERROR
There was a network error.

SIM_E_MOBILEERROR
Mobile error.

SIM_E_UNSUPPORTED
The command is unsupported.

SIM_E_BADPARAM
Bad parameter.

SIM_E_UNDETERMINED
Undetermined error.

SIM_E_RADIONOTPRESENT
The Radio is not present.

SIM_E_RADIOOFF
The Radio is off.

 
 
 

回复

66

帖子

0

TA的资源

一粒金砂(初级)

7
 
我在memset前面加上
hr = SimInitialize(SIM_INIT_NONE, NULL, 0, &g_hSim);
最後SimWriteMessage的結果依然是E_INVALIDARG  (0x80070057L)
請問還有什麼要注意的嗎?

 
 
 

回复

68

帖子

0

TA的资源

一粒金砂(初级)

8
 
要不就把你的应用签名了,再试试
 
 
 

回复

67

帖子

0

TA的资源

一粒金砂(初级)

9
 
請問一下~~要如何簽名呢??
有什麼SAMPLE CODE嗎?
小弟是第一次看到簽名這種東西~~
多謝U大的幫忙!!!^^
 
 
 

回复

64

帖子

0

TA的资源

一粒金砂(初级)

10
 
发表于:2009-01-14 13:46:137楼 得分:30
要不就把你的应用签名了,再试试

------------------------------

请教你,应用怎么签名啊? 期盼早日回答,十分感谢
 
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/10 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表