MAPiEx - 扩展Mapi Wrapper C#帮助 - 附件?

时间:2011-04-04 09:46:53

标签: c# c++ mapi

我正在尝试使用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);

工作?

1 个答案:

答案 0 :(得分:0)

我认为这是MessageAddAttachment。