2011-04-04 54 views
0

我想使用的DllImport从MapiEx.dll我的C#代码,露出附件功能:MAPiEx - Extended Mapi Wrapper 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); 

工作?

回答

0

我认为这是MessageAddAttachment。