|  SKYENGINE API  
      参考手册返回目录 | 
  
 (int32 code = 
      4032,  
  
  
  
     int32 mr_platEx 
    
       
uint8* input, 
int32 input_len, 
uint8** output, 
      
int32* output_len, 
MR_PLAT_EX_CB* 
  cb
)
Description
获得电话本的条数。
Parameters
  
    
    
       
    Name 
      Description 
       
    input 
      T_MR_PHB_GET_COUNT_REQ数据结构指针 
       
    input_len 
      T_MR_PHB_GET_COUNT_REQ数据结构大小 
       
    output 
      T_MR_PHB_GET_COUNT_RSP数据结构指针 
       
    output_len 
      T_MR_PHB_GET_COUNT_RSP数据结构大小 
       cb 
      无 
MR_PHB_SUCCESS (1000) 获得记录成功
MR_PHB_NOT_READY (1004) 电话本初始化中
MR_PHB_NOT_SUPPORT (1003) 输入参数错误
T_MR_PHB_GET_COUNT_REQ数据结构:
typedef struct
{
int32 storage; /*1:sim卡电话本;2:手机电话本;3;全部*/
}T_MR_PHB_GET_COUNT_REQ;T_MR_PHB_GET_COUNT_RSP数据结构:
typedef struct
{
int32 count; /*记录的个数*/
}T_MR_PHB_GET_COUNT_RSP;
/*mrp code*/
T_MR_PHB_GET_COUNT_REQ getReq;
T_MR_PHB_GET_COUNT_RSP *getRsp;
int32 len;getReq.storage = 3;
mrc_platEx( 4032, (uint8*)&getReq, sizeof ( T_MR_PHB_GET_COUNT_REQ ), (uint8**)&getRsp, &len, NULL );