1. Home
  2. How to display Settings screens or Control Panel Applets in Windows Mobile?

How to display Settings screens or Control Panel Applets in Windows Mobile?

KB ID: 42G2012325
Views: 134
Updated: June 2021

Windows Mobile Control Panel applets are normal dlls renamed with special extension .cpl. They are actually loaded by the ctlpnl.exe process.

The following code snippet is what you need if you want to show a Control Panel applet from your program. This way you make it easy for your user to change desired settings, without any complex navigation.

BOOL ShowControlPanelApplet(int id)
{
TCHAR szParams[32];
SHELLEXECUTEINFO execinfo = {0};
memset(&execinfo, 0, sizeof(execinfo));
execinfo.cbSize=sizeof(execinfo);
execinfo.lpFile=TEXT(“\windows\ctlpnl.exe”);
execinfo.lpVerb=TEXT(“open”);
// Id value determines which control applet will be launched
// For e.g. 23 for bluetooth applet
wsprintf(szParams, L”cplmain.cpl,%d”, id);
execinfo.lpParameters = szParams;
BOOL bRet=ShellExecuteEx(&execinfo);
return bRet;
}

The parameter id refers to the control panel applet that you want to show.

Below is the table of id values and the corresponding applet names.

Control Panel Applet Id Values

  • Password
  • Owner Information
  • Power
  • Memory
  • About
  • Brightness
  • Screen
  • Input
  • Sounds & Notifications
  • Remove Programs
  • Menus
  • Buttons
  • Today
  • Beam
  • Clocks & Alarms
  • Configure Network Adapters
  • Regional Settings
  • Connections
  • Manage Certificates
  • Bluetooth
  • Error Reporting
  • GPS Settings
  • USB to PC

For more details on our products, click here 
If you need further assistance, please submit a ticket here