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.

This code sample is named Mailset. It demonstrates how to retrieve and set properties on a message store. The application reads the contents of an XML file named mailset.xml, which contains a list of MAPI properties(for example, PR_CE_AGE_FILTER, PR_CE_INCOMING_SERVER, and PR_CE_DOMAIN) that you can change.

Feature Area

Relevant APIs


To run the code sample
  1. Navigate to the solution file (*.sln), and double-click it. By default, the solution files are copied to the following folders:

    C:\Program Files\Windows Mobile 6.5.3 DTK\Samples\PocketPC\CPP\win32\MailSet

    Microsoft Visual Studio launches and loads the solution.

  2. Build the solution (Ctrl+Shift+B).

  3. Deploy the solution (F5).

To use the application
  1. Copy the XML file mailset.xmland the executable file "MailSet.exe" to the same directory on the mobile device.

  2. Execute "MailSet.exe".


You have at least one message account (SMS, ActiveSync) set up.

The XML document has the following format:

Copy Code
<store proptag="0x811A000B"  propname="PR_CE_USE_SIGNATURE" 
display="Use the account signature"  default="0"  type="2"/>



The numeric value of the property.


The name of this property.


A friendly description of this property.


The default value of this property to use if it is not in the store.


The type of the property, where:

0 = String

1 = Integer

2 = Boolean

Development Environments

SDK:Windows Mobile Professional SDK and Windows Mobile Standard SDK

Development Environment:Visual Studio 2005 or 2008.

ActiveSync:Version 4.5.

See Also