Delphi Programming

  1. Home
  2. Computing & Technology
  3. Delphi Programming

Open an applet from the Control Panel

By Zarko Gajic, About.com

To start a Windows Control Panel Applet use the following function:

~~~~~~~~~~~~~~~~~~~~~~~~~
function RunControlPanelApplet(
  const sAppletFileName : string) : integer;
begin
  Result :=
  WinExec(
   PChar('rundll32.exe shell32.dll,'+
   'Control_RunDLL ' + sAppletFileName),
   SW_SHOWNORMAL) ;
end;
~~~~~~~~~~~~~~~~~~~~~~~~~
Usage:

RunControlPanelApplet('sysdm.cpl') ;

Note: Applet Names!
access.cpl: Hardware
appwiz.cpl: Software
desk.cpl: Display
intl.cpl: RegionalSettings
joy.cpl: Joystick
main.cpl: Mouse
mmsys.cpl: Multimedia
modem.cpl: Modems
sysdm.cpl: System
timedate.cpl: Time

Read more on Control Panel applets:
Locate, Display and Execute Control Panel Applets
Interested in Delphi code to mimic the Windows Control Panel folder behavior? In this article you can learn how to find CPL files, how to extract description, name and even the applet icon. Even more, learn how to execute applets from your applications.

Delphi tips navigator:
» Summing multiple selected rows in a DBGrid
« Use arrow keys to move between controls

Zarko Gajic
Guide since 1998

Zarko Gajic
Delphi Programming Guide

Explore Delphi Programming

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Delphi Programming

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Coding Delphi Applications
  5. Delphi Tips and Tricks
  6. 2000 Delphi Tips
  7. Open an applet from the Control Panel

©2009 About.com, a part of The New York Times Company.

All rights reserved.