2011-04-04 6 views
0

私はDLLIMPORTを使用してMapiEx.dllからの私のC#コードでの添付ファイルの機能を公開しようとしている:MAPiEx - 拡張Mapiラッパー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だと思います。

関連する問題