windows mobile 设置中添加程序

这是windows mobile sdk 6里面的例子,位于:

C:/Program Files/Windows Mobile 6 SDK/Samples/PocketPC/CPP/win32/myBackLight

原文如下:

Code Sample Name: myBackLight

Feature Area: Shell

Description:
   This project demonstrates how to create a simple control panel applet for a
   Windows Mobile-based Pocket PC device.

   Note: This sample does not actually control the backlight, it simply
   illustrates how a control panel applet is implemented.

Relevant APIs:
   CPlApplet

Usage:
   Load and deploy the project in Visual Studio 2005. The resulting file,
   myBackLight.cpl, will be deployed to the /Windows directory. To view the CPL
   in Start:Settings, you may need to reset the device.

   Control panel applets can be started programmatically.  The format of the
   command is:

   '/Windows/ctlpnl.exe cpl_filename.cpl,applet_name,applet_index,tab_index'

   You can configure Visual Studio 2005 to debug this sample automatically on
   the device after you build it by following these steps:

   1. Select Properties from the Project menu.
   2. Select Debugging from the Configuration Properties tree.
   3. For Remote Executable, specify "/Windows/ctlpnl.exe".
   4. For Command Arguments, specify "myBackLight.cpl".
   5. Select OK to save your changes. Press F5 to begin debugging.

Assumptions:
   None.
   
Requirements:
   Visual Studio 2005,
   Windows Mobile 6 Professional SDK

** For more information about this code sample, please see the
   Windows Mobile SDK help system. **

    这是我在做双摄像头驱动中遇到需要切换摄像头的系统设置问题,在windows mobile的设置里面添加一个控制图标,编写一个修改注册表的程序,实现前后摄像头的切换。

    此例子很简单,编译出来就是一个myBackLight.cpl的程序,可以在模拟器中运行,也可以直接复制到智能机的/windows目录中,重启机器就可以了。在设置里面即可多出一个新的图标。

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值