SKYENGINE API  参考手册返回目录  

 

int32 mr_plat(int32 code = 1101, int32 param)



Description
获得短信信箱中短息的条数。
Parameters

Name Description
param MR_SMS_INBOX:收件箱
MR_SMS_OUTBOX:发件箱
MR_SMS_DRAFTS:草稿箱

Return Value

短信条数 + MR_PLAT_VALUE_BASE         成功
MR_FAILED                                        操作失败

Remarks

注各个枚举值:
typedef enum
{
    MR_SMS_NOBOX ,
    MR_SMS_UNREAD,
    MR_SMS_INBOX,
    MR_SMS_OUTBOX,
    MR_SMS_DRAFTS,
    MR_SMS_AWAITS,
    MR_SMS_DATA,
    MR_SMS_UNSENT,
    MR_SMS_READED,
    MR_SMS_SENT
}MR_MSG_STATUS;

Example

/*mrp code*/

int32 num;
num = mrc_plat( 1101, MR_SMS_INBOX );

See Also

 


Copyright ?2005-20010 SKY-MOBI

返回目录