Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Windows Mobile messaging applications are built using interface members belonging to the Messaging API (CE MAPI) Reference. CE MAPI definitions are referenced in the Cemapi.hheader file, and are implemented in the Cemapi.libfile. This section contains topics that present procedures with code examples that show you exactly how to use CE MAPI to create a messaging application.
In This Section
- Beginning a MAPI Session
-
Before you can access a message store, you must initialize the MAPI subsystem and log onto a MAPI session. This gives you a reference to an IMAPISessioninterface object, which you can use to access the message store table, message stores, message folders, and messages.
- Ending a MAPI Session
-
When the user is done performing messaging tasks, there is no further need to consume valuable system resources with the messaging subsystem. At this point, it is a good idea to free resources by ending the MAPI session.
- Connecting to a Message Store
-
Before you can create and manipulate message folders and message items, you must establish a connection to a message store.
- Creating a Message
-
New messages are always created from a message store's Draftsfolder. After you create a message, you can set its property values (subject, body, list of recipients, and so on) and then send the message.
- Sending a Message
-
New messages are always created and sent from a message store's Drafts folder. After you create a message, you set its property values (subject, body, list of recipients, and so on) and then post the message.
- Registering Customized Messaging Forms
-
Customized messaging forms and transports require registry value sets under three registry keys. The first registers the form as a message class. The second specifies a messaging transport. The third specifies the message classes supported by the transport. When the message classes are input forms that appear on the "New" submenu of the Text Messages account, it is possible to specify the order in which the forms are listed in this submenu.
- Registering Customized Messaging Transports
-
Customized messaging transports require one registry entry. It specifies the name for the new message transport, along with the name of the DLL that contains it.
- Registering Customized Messaging Rules Clients
-
Customized messaging rules clients require two separate registry entries. The first one registers the messaging rules client as a COM server, specifying its GUID. The second entry specifies the message transport(s) to use.