[英]Can I read stored SMS entries on my Windows Mobile phone from a .NET CF application?
Looking at writing an application using the .NET Compact framework to extract SMS messages on my Windows Mobile phone. 正在寻找使用.NET Compact框架编写应用程序以在Windows Mobile手机上提取SMS消息。 I basically want to be able to export the stored message in the inbox so that they could be imported to Excel or some other program for formatting and storage.
我基本上希望能够在收件箱中导出存储的消息,以便可以将其导入Excel或其他程序进行格式化和存储。
In my personal case, I have a Treo 700w. 就我个人而言,我有Treo 700w。 I've written some small apps under the Compact Framework before, but I can't find anything referencing where the text messages are stored.
之前,我已经在Compact Framework下编写了一些小型应用程序,但是找不到引用文本消息存储位置的任何内容。 I have some 7000 messages stored in my phone and I'd like to extract them to free up memory.
我的手机中存储了大约7000条消息,我想提取它们以释放内存。 I may have to keep these messages around for legal reasons so I'd like to preserve them 'offline' as far as my phone is concerned.
由于法律原因,我可能不得不保留这些消息,因此就我的手机而言,我希望将其“离线”保存。
Has anyone ever had to do this? 有没有人必须这样做?
I don't believe the .NET Framework (compact or otherwise) includes an API for working with SMS which is done through CE MAPI . 我不相信.NET Framework(紧凑或其他)包括通过CE MAPI完成的用于SMS的API。 In other words you'll have to use interop, or write the app in C++.
换句话说,您将必须使用互操作或以C ++编写应用程序。 Or if you're lazy you can just use a wrapper .
或者,如果您很懒,可以只使用包装器 。 =)
=)
如果您以WM6为目标,则可以使用Microsoft.WindowsMobile.PocketOutlook命名空间访问SMS消息,尤其是SmsAccount类。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.