Can I read stored SMS entries on my Windows Mobile phone from a .NET CF application?

倖福魔咒の 提交于 2019-12-11 18:07:19

问题


Looking at writing an application using the .NET Compact framework to extract SMS messages on my Windows Mobile phone. 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.

In my personal case, I have a 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. I have some 7000 messages stored in my phone and I'd like to extract them to free up memory. 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?


回答1:


If you are targeting WM6, you can use the Microsoft.WindowsMobile.PocketOutlook namespace to access SMS messages, particularly the SmsAccount class.




回答2:


I don't believe the .NET Framework (compact or otherwise) includes an API for working with SMS which is done through CE MAPI. In other words you'll have to use interop, or write the app in C++. Or if you're lazy you can just use a wrapper. =)



来源:https://stackoverflow.com/questions/722796/can-i-read-stored-sms-entries-on-my-windows-mobile-phone-from-a-net-cf-applicat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!