MAPiEx - 扩展 Mapi 包装器 C# 帮助 - 附件?
我正在尝试使用 DllImport 在 MapiEx.dll 的 C# 代码中公开附件功能:
[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetSenderName(IntPtr pMessage, string strSenderName);
[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetSenderEmail(IntPtr pMessage, string strSenderEmail);
[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetBody(IntPtr pMessage, String strBody);
[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetRTF(IntPtr pMessage, String strRTF);
[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetHTML(IntPtr pMessage, String strRTF);
但我找不到正确的相应项目来公开设置附件的内容。
会
[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetAttachment(IntPtr pMessage, String strFileName);
起作用吗?
I'm trying to expose the attachment functionality in my c# code from MapiEx.dll using DllImport:
[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetSenderName(IntPtr pMessage, string strSenderName);
[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetSenderEmail(IntPtr pMessage, string strSenderEmail);
[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetBody(IntPtr pMessage, String strBody);
[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetRTF(IntPtr pMessage, String strRTF);
[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetHTML(IntPtr pMessage, String strRTF);
But I can't find the correct corresponding item to expose something to set an attachment.
Would
[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetAttachment(IntPtr pMessage, String strFileName);
work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这是 MessageAddAttachment。
I think it's MessageAddAttachment.