Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
8/28/2008
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.
To run the code sample
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 SDK\Samples\PocketPC\CPP\win32\MailSet
Microsoft Visual Studio 2005 launches and loads the solution.
Build the solution (Ctrl+Shift+B).
Deploy the solution (F5).
To use the application
Copy the XML file mailset.xml and the executable file "MailSet.exe" to the same directory on the mobile device.
Execute "MailSet.exe".
You have at least one message account (SMS, ActiveSync) set up.
The XML document has the following format:
<store proptag="0x811A000B" propname="PR_CE_USE_SIGNATURE" display="Use the account signature" default="0" type="2"/>
where:
type
The type of the property, where:
0 = String
1 = Integer
2 = Boolean
SDK: Windows Mobile 6 Professional SDK and Windows Mobile 6 Standard SDK
Development Environment: Visual Studio 2005.
ActiveSync: Version 4.5.
Please sign in to use this experience.
Sign in