Read View Menu Extension

This code sample is named ReadViewMenuExt. It demonstrates how to reply to an email message using a default email account. This is enabled for mail messages in all non-default email accounts.
-
Shell Reference
-
IContextMenu interface
-
IObjectWithSite interface
-
MailComposeMessage function
-
Messaging API (MAPI) API
-
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\Common\CPP\Win32\ReadViewMenuExtMicrosoft Visual Studio 2005 launches and loads the solution.
-
Build the solution (Ctrl+Shift+B).
-
Deploy the solution (F5).
To deploy the solution on a Windows Mobile 6 Standard Emulator, you must sign and provision the DLL.
To deploy the application on a Windows Mobile Standard Emulator-
In Visual Studio, right-click the ReadViewMenuExt project in Solution Explorer, and then click Properties.
-
Click Authenticode Signing.
-
Click the button associated with Certificate.
-
Click Manage Certificates.
-
Click Import.
-
Click Next.
-
Navigate to the Visual Studio Test Certificates folder. (the default location is
C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SDKTools\TestCertificates). -
Select TestCert_Privileged.pfx.
-
Click Next.
-
Click Next.
-
Click Next.
-
Click Finish.
-
Click Close.
-
Click OK.
-
Click the drop-down associated with Provision Device, and select Privileged Certificate Store.
-
Click OK.
After you build this code sample, you can configure Visual Studio 2005 to debug it remotely on the mobile device by following these steps.
To debug this project-
In Visual Studio, right-click the ReadViewMenuExt project in Solution Explorer, and then click Properties.
-
Expand Configuration Properties, and click Debugging.
-
In Debugger to launch:, select Smart Device Native Debugger.
-
In Remote Executable, type "\Windows\tmail.exe".
-
Click OK to save your changes.
-
Press F5 to begin debugging.