访问消息传递数据库和SIM卡联系人 [英] Accessing Messaging Database and SIM Contact

查看:116
本文介绍了访问消息传递数据库和SIM卡联系人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计

Hi Guys

需要向专家提出两个问题:

Need to ask experts here two questions:

[My dev config:Windows Mobile 6 [HTC],Dev Env:MS VS 2005,VC ++,Native Dev for mobile device]

[My dev config: Windows Mobile 6 [HTC], Dev Env: MS VS 2005, VC++, Native Dev for mobile device]

i。访问消息传递数据库

i. Accessing Messaging Database

- 我需要访问"已发送邮件"我的移动设备的Messaging DB下的文件夹。我能够访问此文件夹并提取我想要的任何项目,除了一个项目是"来自"也就是说,当我收到短信时,我需要知道"谁"。发给我这条短信(发件人联系号码)。对于来自其他文件夹的类似信息,例如"收件箱","已删除邮件"等。我可以通过在SizedSPropTagArray中使用 PR_SENDER_NAME 来获得此功能。我尝试使用 PR_EMAIL_ADDRESS 以及许多其他(来自MSDN)用于"已发送邮件",但无法使用得到我想要的。

- I need to access "Sent Items" folder under Messaging DB of my mobile device. I am able to access this folder and extract any items I want except one item which is "From" i.e., when I receive a SMS, I need to know "who" sent me this SMS (senders contact no.) . For similar info from other folders such as "Inbox", "Deleted Items" I am able to get this by using PR_SENDER_NAME in SizedSPropTagArray. I tried to use PR_EMAIL_ADDRESS and many others (from MSDN) for "Sent Items", but couldn't get what I want.

ii。访问SIM卡联系人

- 我需要从移动设备获取所有联系人详细信息。我可以从"Outlook联系人"中获取这些内容。但不是来自"SIM联系人"。你们有没有设法从这个数据库中提取联系方式。如果是这样,请建议我如何做到这一点。

< font color ="#008000"size = 1> 任何src代码或直接指针对我都有很大的帮助。

...让你们大致知道我到目前为止所取得的成就

MAPILogonEx(IMAPI Session * pSession)

MAPILogonEx( IMAPI Session *pSession)

pSession-> GetMsgStoresTable(0,& ptbl); // IMAPITable * ptbl

pSession->GetMsgStoresTable(0, &ptbl); // IMAPITable *ptbl

pSession-> OpenMsgStore(IMessageStore * pMsgStore)//寻找"SMS"邮件存储

pSession->OpenMsgStore(IMessageStore *pMsgStore) // looking for "SMS" message store

...

static const SizedSPropTagArray(3,spta)= {3,PR_ENTRYID,PR_SUBJECT,PR_EMAIL_ADDRESS};

static const SizedSPropTagArray (3, spta) = { 3, PR_ENTRYID, PR_SUBJECT, PR_EMAIL_ADDRESS };

pMsgStore-> OpenEntry(...)

pMsgStore->OpenEntry(...)

现在我通过此表枚举[已发送项目]并获取所有详细信息,例如{主题,时间,...}但不是"来自"。请让我知道这一部分。

对于问题的第二部分,我使用来自MS SDK的POOM示例程序提取OutLook联系人,但再次无法从SIM联系人获取相同内容。

For the second part of question, I use POOM sample program from MS SDK to extract OutLook Contact but again fail to get the same from SIM Contact.

推荐答案

对于SIM卡联系人:

For SIM Contacts:

您可以使用 SimReadPhonebookEntry API。

参见 http://www.pocketpcdn.com/forum/ viewtopic.php?t = 11457& view = next& sid = 3448434df26232ae4a0cfb4bf0c7055b

获取样本。

已发送物品:

Mayby我没有正确理解你,但却是消息es in"Sent Items"由你自己发送,所以from字段不会非常有趣/令人惊讶。

Mayby i did not understand you correctly but messages in "Sent Items" are sent by yourself so the from field will not be very interesting/suprising.


这篇关于访问消息传递数据库和SIM卡联系人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆