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.
4/8/2010

This section provides details about the Windows Mobile Messaging API (CE MAPI) functions.

Function Description

FormFactory

Returns a reference to the IFormProviderinterface, allowing the Messaging Application to create the plug-in's custom Read and Compose forms. For Pocket PC 2002 and Smartphone 2002 only.

FormFactoryEx

Returns a reference to the IFormProviderExinterface, allowing the Messaging Application to create the plug-in's custom read and compose forms. For Windows Mobile 2003 and later.

FreeProws

Destroys an SRowSetstructure and frees associated memory, including memory allocated for all member arrays and structures.

HrGetOneProp

Retrieves the value of a single property from an object that support properties, such as an IAttach, a IMAPIContainer, a IMAPIFolder, a IMessage, or IMsgStore.

HrSetOneProp

Sets or modifies the value of a single property from an object that support properties, such as an IAttach, a IMAPIContainer, a IMAPIFolder, a IMessage, or IMsgStore.

MailComposeMessage

Displays a Compose message form.

MailDisplayMessage

Displays an existing message.

MailLaunchNewAccountWizard

Launches the Messaging application and invokes the New Account Wizard.

MailSwitchToAccount

Switches to the specified account.

MailSwitchToFolder

Switches to a folder, and displays it in a List View.

MailSyncMessages

Synchronizes the messages in the specified account.

MAPIAllocateBuffer

Allocates a memory buffer.

MAPIAllocateMore

Allocates a memory buffer that is linked to another memory buffer that has been previously allocated with the MAPIAllocateBufferfunction.

MAPIFreeBuffer

Frees a memory buffer that has been allocated with a call to either the MAPIAllocateBufferor the MAPIAllocateMorefunctions.

MAPIInitialize

Increments the CE MAPI subsystem reference count, and initializes global data for the CE MAPI COM Server (Cemapi.dll).

MAPILogonEx

Logs a client application onto a session with the messaging system.

MAPIUninitialize

Decrements the reference count, cleans up, and deletes per-instance global data for the CE MAPI COM Server (Cemapi.dll).

OneStopFactory

Called by the Messaging Application to create an instance of a custom transport, and get a reference to the IMailSyncHandlerinterface object for the transport.

See Also