This code sample is named myBackLight. It demonstrates how to create a simple Control Panel application for Windows Mobile 6 Professional or Windows Mobile 6 Classic.
- Shell Reference
- Control Panel Reference for Windows Mobile 6 Professional and Windows Mobile 6 Classic
- CPlApplet function
To run the code sample
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\myBackLight
Microsoft Visual Studio 2005 launches and loads the solution.
Build the solution (Ctrl+Shift+B).
Deploy the solution (F5).
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 myBackLight project in Solution Explorer, and then click Properties.
Expand Configuration Properties, and click Debugging.
In Debugger to launch:, select Smart Device Native Debugger.d
In Remote Executable, type \Windows\ctlpnl.exe.
In Command Arguments, type myBackLight.cpl.
Click OK to save your changes.
Press F5 to begin debugging.
Using the application
To view the control panel application in Start > Settings. You might need to reset the mobile device.
Control panel applications can be started programmatically. The format of the command is:
This sample does not actually control the backlight, it simply illustrates how a control panel application is implemented.
The resulting file, "myBackLight.cpl", will be deployed to the \Windows directory on the mobile device.
Pocket PC SDK: Windows Mobile 6 Professional SDK
Development Environment: Visual Studio 2005.
ActiveSync: Version 4.5.