Share via


Custom Plug-in Sample

Windows Mobile SupportedWindows Embedded CE Not Supported

8/28/2008

This code sample is named memwatcher. It illustrates how to create a custom Today screen item for Windows Mobile 6 Professional .

Feature Area

Shell Reference

Relevant APIs

TODAYLISTITEM

To run the code sample

  1. Navigate to the solution file (*.sln), and double-click it. By default, the solution file is copied to the following folder:

    C:\Program Files\Windows Mobile 6 SDK\Samples\PocketPC\CPP\win32\memwatcher

    Microsoft Visual Studio 2005 launches and loads the solution.

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

  3. Copy the .cab file output of the memwatchercab project to the device and double-click the file on the device.

  4. Set the following registry key on the device:

[HKEY_LOCAL_MACHINE\Software\Microsoft\Today\Items\SamplePlugin]
   "Type"=dword:4
   "Order"=dword:10
   "Enabled"=dword:1
   "DLL"="customPlugin.dll"
   "Selectability"=dword:2
  1. Open the Settings-Today application and tap on the Items tab. Tap OK to close the dialog. This causes Today to reload all the applications on the Today screen, including the Memwatcher sample.

Development Environments

SDK: Windows Mobile 6 Professional SDK and Windows Mobile 6 Standard SDK

Development Environment: Visual Studio 2005.

ActiveSync: Version 4.5.

See Also

Concepts

Code Samples for Windows Mobile