How to get email title using MAPI on Windows Mobile?
I want to get the title of an email in PockerOutlook on Windows Mobile, but currently Microsoft.WindowsMobile.PocketOutlook has the ability to:
-
List message accounts.
-
Send Email
-
Send SMS
-
Interception of SMS
So I want DLLImport MAPI.DLL to get its functions to get the email title.
I find this link written in C ++. It seems difficult to convert to C # version due to different data types. Should I create a dll file myself written in C ++ and DLLImport for a C # application?
a source to share
I'm not a C # person, but MAPI is a COM based system. So you don't want to import MAPI dlls, you want to use any C # system to convert COM interfaces ( COM Interop ).
You list stores messaing with ICEMAPISession , then you list folders in each store (or go directly to known folders like inbox)) with IMsgStore . Then you can emulate messages in the folder with IMAPIFolder .
As soon as you receive an email message ( IMessage ), you request PR_SUBJECT .
You should get used to COM Interop in C # and the somewhat confusing MAPI interface.
a source to share