首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Windows Mobile >

,RIL_DeleteMsg使用有关问题

2012-01-20 
高手请进,RIL_DeleteMsg使用问题!HRESULT RIL_DeleteMsg(HRIL hRil,DWORD dwIndex//Specifies the index o

高手请进,RIL_DeleteMsg使用问题!
HRESULT RIL_DeleteMsg(
  HRIL hRil,
  DWORD dwIndex //Specifies the index of the message to be deleted
);
以上函数参数中dwIndex应该如何使用?


[解决办法]
微软的每一条短信都有一个index,唯一标志一条短信;
通过MAPI我们可以得到该index

hr = pProp->GetProps((LPSPropTagArray)rgTags, MAPI_UNICODE, &cValues, &rgMsgProps);
index = rgMsgProps[0].Value.ul;

删除短信的时候直接调用就可以了;

热点排行