Windows mobile 通过托管代码在Windows Mobile中查看短信

Windows mobile 通过托管代码在Windows Mobile中查看短信,windows-mobile,sms,Windows Mobile,Sms,在Windows Mobile SDK中,Microsoft.WindowsMobile.PocketOutlook中有一个MessagingApplication类,它有一个“DisplayComposeForm”方法,允许您打开发送SMS的默认撰写对话框 我需要一种从托管代码显示默认消息查看对话框的方法。即,我已通过MAPI检索邮件,但现在我想使用Windows Mobile中的默认邮件查看器显示该邮件 有人知道怎么做吗?多亏了一些聪明的谷歌搜索,我终于找到了答案 使用p/Invoke访问M

在Windows Mobile SDK中,Microsoft.WindowsMobile.PocketOutlook中有一个MessagingApplication类,它有一个“DisplayComposeForm”方法,允许您打开发送SMS的默认撰写对话框

我需要一种从托管代码显示默认消息查看对话框的方法。即,我已通过MAPI检索邮件,但现在我想使用Windows Mobile中的默认邮件查看器显示该邮件


有人知道怎么做吗?

多亏了一些聪明的谷歌搜索,我终于找到了答案

使用p/Invoke访问MAPI API中的方法

p/Invoke签名如下:

[DllImport("cemapi.dll")]
internal static extern int MailDisplayMessage(byte[] lpEntryID, int cbEntryID);

对于邮件存储的托管访问,您可以使用免费项目。

多亏了一些聪明的谷歌搜索,我才偶然找到了答案

使用p/Invoke访问MAPI API中的方法

p/Invoke签名如下:

[DllImport("cemapi.dll")]
internal static extern int MailDisplayMessage(byte[] lpEntryID, int cbEntryID);
对于消息存储的托管访问,可以使用免费项目