|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 CustomForm. It demonstrates how to implement a mail rule client to capture and process Short Messaging Service (SMS) and Enhanced Messaging Service (EMS) messages, process multipart EMS messages, and implement a custom read-form to display these messages in the Messaging application.
Navigate to one of the solution files (*.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\Common\CPP\Win32\CustomForm
Microsoft Visual Studio launches and loads the solution.
Build the solution (Ctrl+Shift+B).
Deploy the solution (F5).
Install the application on the mobile device by copying the file CustomFormSetup.cabto the mobile device, and running it on the mobile device.
Reboot the mobile device.
Once the Rule Client and Custom Form are installed, you should be able to receive EMS messages on the mobile device. They will be processed by the Rule Client, and available for viewing in the SMS account in Inbox. The only supported EMS Information Element Identifiers (IEIs) are pictures. Generic SMS data (text) is also processed.
It is assumed that the mobile device supports SMS messaging.
Supported IEIs are those referenced from
Additional IEIs will be ignored by the Rule Client.
- 0x10 = Large Picture (32x32)
- 0x11 = Small Picture (16x16)
- 0x12 = Variable Size Picture
SDK:Windows Mobile Professional SDK and Windows Mobile Standard SDK
Development Environment:Visual Studio 2005 or 2008.