简体   繁体   English

正在通过ActiveSync连接的Windows Mobile手机上读取SMS消息?

[英]Reading SMS messages off Windows Mobile phone connected via ActiveSync?

I have a project I'm working on that requires our WPF application read SMS messages off of a user's connected Windows Mobile phone so we can display recent ones, etc. 我有一个正在进行的项目,要求我们的WPF应用程序从用户连接的Windows Mobile手机上读取SMS消息,以便我们可以显示最新消息,等等。

I've had little luck with any of the libraries I've found. 我发现的任何库都运气不佳。 Most promising seemed to be OpenNETCF.Desktop.Communications but ultimately it seems like I won't be able to do what I need to with it. 最有前途的似乎是OpenNETCF.Desktop.Communications,但最终似乎我无法使用它来做我需要做的事情。

What's the best way to read SMS messages off of a connected phone? 从已连接的手机读取SMS消息的最佳方法是什么? Will it just be easier for me to write some sort of service app for the phone that acts as a server and our WPF app as the client? 对我来说,为用作服务器的电话编写某种服务应用程序,而作为客户端编写我们的WPF应用程序会更容易吗?

Thanks! 谢谢!

There's nothing out-of-the-box that will do what you want. 开箱即用没有什么可以做您想要的。 RAPI, which the OpenNETCF library wraps, has a set of communication APIs, but nothing for SMS. OpenNETCF库包装的RAPI具有一组通信API,但SMS则没有。 It does have the ability to snap-in custom APIs, so you could create a custom API and use that. 它确实具有管理自定义API的功能,因此您可以创建一个自定义API并使用它。 The advantage with this strategy is you don't need any user intervention to get stuff onto the device (no copy and run of a service app stuff). 这种策略的优势在于,您无需任何用户干预即可将内容放入设备(无需复制和运行服务应用程序内容)。 The down side is that the custom RAPI DLL for the device must be native code. 缺点是设备的自定义RAPI DLL必须是本机代码。

If you go with your own mechanism, you can then use the POOM APIs in managed code to get the messages and ship them. 如果采用自己的机制,则可以在托管代码中使用POOM API来获取消息并将其发送。 The only challenge there is that you have to run some form of a "service" app on the device to listen for calls, which means writing your own protocol, which means a fairly large test matrix. 唯一的挑战是,您必须在设备上运行某种形式的“服务”应用程序以侦听呼叫,这意味着编写自己的协议,这意味着相当大的测试矩阵。

Jeyo have a product that pulls SMS messages from a phone into outlook PST files. Jeyo的产品可以将手机中的SMS消息提取到Outlook PST文件中。 Strikes me that you could just use that product and trawl the PST for recent messages (bit of a kludge I know, but if you were desperate) or talk to them about if they'll licence some of their code for you? 令我惊讶的是,您可以只使用该产品并拖曳PST以获取最新消息(我知道有些纠结,但是如果您是绝望的话),或者与他们讨论是否要为您许可一些代码?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM