当前位置: 代码迷 >> Windows Mobile >> ,RIL_DeleteMsg使用有关问题
  详细解决方案

,RIL_DeleteMsg使用有关问题

热度:101   发布时间:2016-04-25 07:53:19.0
高手请进,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;

删除短信的时候直接调用就可以了;
  相关解决方案