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);
工作?