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; }
How to display Settings screens or Control Panel Applets in Windows Mobile?
By 42Gears Team
“Written with expertise and passion to help you understand the topic better.”
4
42Gears Team – Content Author
Published on: February 22, 2010
Subscribe to our newsletter
Stay updated with the latest news, articles, and resources on enterprise mobility.
- Weekly articles
- Actionable insights delivered once a week. No noise.
- No spam
- Your privacy matters. Unsubscribe anytime.