Solved

Enum Control Panel Applets And Call

Posted on 2000-02-23
10
380 Views
Last Modified: 2010-04-04

hi.

i like to be able to enum all control panel applets and call any i like

Esk
0
Comment
Question by:esk
10 Comments
 
LVL 6

Expert Comment

by:edey
ID: 2552092
I could be mistaken but I belive all the applets (.cpl files) are to be found in the windows\system directory.  From there you should be able to call anyone of them using:

ShellExecute(0, 'open', 'Control.exe',fileName, nil, SW_SHOWNORMAL);


GL
Mike



0
 
LVL 13

Accepted Solution

by:
Epsylon earned 200 total points
ID: 2552181
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2552562
I uploaded a new version that also runs the cpl applications.
0
 
LVL 17

Expert Comment

by:inthe
ID: 2553067
you can also directly open the tabsheets / pages of the applets ,here is a good listing of most with example call at top :

WinExec(PChar('rundll32.exe shell32.dll , Control_RunDLL access.cpl,,4'), SW_SHOWNORMAL);



Control Panel
 
  module:
          CONTROL.EXE
 
command:
          rundll32.exe shell32.dll,Control_RunDLL
    result:
          displays the Control Panel icons in an Explorer view
 
 
Accessibility Properties
 
  module:
          ACCESS.CPL
 
under Win95:
command:
          rundll32.exe shell32.dll,Control_RunDLL access.cpl,,5
    result:
          displays the Accessibility General properties
 
command:
          rundll32.exe shell32.dll,Control_RunDLL access.cpl,,1
    result:
          displays the Accessibility Keyboard properties
 
command:
          rundll32.exe shell32.dll,Control_RunDLL access.cpl,,2
    result:
          displays the Accessibility Sound properties
 
command:
          rundll32.exe shell32.dll,Control_RunDLL access.cpl,,3
    result:
          displays the Accessibility Display properties
 
command:
          rundll32.exe shell32.dll,Control_RunDLL access.cpl,,4
    result:
          displays the Accessibility Mouse properties
 
 
under NT 4.0
command:
          rundll32.exe shell32.dll,Control_RunDLL access.cpl,,0
    -or-
          rundll32.exe shell32.dll,Control_RunDLL access.cpl,,1
    result:
          displays the Accessibility Keyboard properties
 
command:
          rundll32.exe shell32.dll,Control_RunDLL access.cpl,,2
    result:
          displays the Accessibility Sound properties
 
command:
          rundll32.exe shell32.dll,Control_RunDLL access.cpl,,3
    result:
          displays the Accessibility Mouse properties
 
command:
          rundll32.exe shell32.dll,Control_RunDLL access.cpl,,4
    result:
          displays the Accessibility General properties
 
 
 
Add New Hardware Wizard
 
  module:
          SYSDM.CPL
 
command:
          rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl @1
    result:
          runs the Add New Hardware wizard
 
 
 
Add New Printer Wizard
 
  module:
        SHELL32.DLL
 
command:
        rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL AddPrinter     result:
        runs the Add New Printer wizard
 
comments:
        Windows NT, it is possible to bring up a predefined Windows Dialog box for connecting to a network printer - the
        ConnectToPrinterDlg API. Not sure is this will work in Delphi.
 
 
Add/Remove Programs Property Page
 
  module:
          APPWIZ.CPL
 
command:
          rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1
    result:
          displays the Install/Uninstall tab selected
 
command:
          rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2
    result:
          displays the Windows Setup tab selected
 
command:
          rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,3
    result:
          displays the Startup Disk tab selected
 
 
 
Copy Disk Dialog
 
  module:
          DISKCOPY.DLL
 
command:
          rundll32.exe diskcopy.dll,DiskCopyRunDll
    result:
          displays the Copy Disk dialog for removable media
 
 
 
Date & Time Properties
 
  module:
          TIMEDATE.CPL
 
command:
          rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0     result:
          displays Set Date & Time properties tab
 
command:
          rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,1     result:
          displays the Time Zone properties tab
 
 
 
Dial Up Networking (DUN)
 
  module:
          RNAUI.DLL
 
command:
          rundll32.exe rnaui.dll,RnaDial {name of connection to
establish}
    result:
          displays the Connect To dialog for the passed connection
 
 
 
Display Options (Standard Windows Display Property Page)
 
  module:
        DESK.CPL
 
command:
        rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0
    result:
        displays the Background tab selected
 
command:
        rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1
    result:
        displays the Screen Saver tab selected
 
command:
        rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2
    result:
        displays the Appearance tab selected
 
command:
        rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3
    result:
        displays the Settings tab selected
 
comments:
        Note: Your video adapter may install other property pages into DESK.CPL dynamically when selected with its own icon
        (i.e an ATI or Matrox control panel icon). Additionally, it also may invoke its own control panel applet mimicking the
        Windows display options.
 
 
 
Joystick Properties
 
  module:
          JOY.CPL
 
command:
          rundll32.exe shell32.dll,Control_RunDLL joy.cpl
    result:
          displays the Joystick property page
 
 
 
Mail and Fax Options
 
  module:
          MLCFG32.CPL
 
command:
          rundll32.exe shell32.dll,Control_RunDLL mlcfg32.cpl
    result:
          displays the Microsoft Exchange Profiles general property page
 
 
 
 
Mail Postoffice Options
 
  module:
          WGPOCPL.CPL
 
command:
          rundll32.exe shell32.dll,Control_RunDLL wgpocpl.cpl
    result:
          displays the Microsoft Postoffice Workgroup Admin property page
 
 
 
Main Group Options/Properties
 
  module:
          MAIN.CPL
 
command:
          rundll32.exe shell32.dll,Control_RunDLL main.cpl @0
    result:
          displays Mouse Properties
 
command:
          rundll32.exe shell32.dll,Control_RunDLL main.cpl @1
    result:
          displays Keyboard Properties, Speed tab
 
command:
          rundll32.exe shell32.dll,Control_RunDLL main.cpl @1,,1     result:
          displays Keyboard Properties, Language tab
 
command:
          rundll32.exe shell32.dll,Control_RunDLL main.cpl @1,,2     result:
          displays Keyboard Properties, General tab
 
command:
          rundll32.exe shell32.dll,Control_RunDLL main.cpl @2
    result:
          displays the Printers Folder (including Add Printer)
 
command:
          rundll32.exe shell32.dll,Control_RunDLL main.cpl @3
    result:
          displays the Fonts Folder in Explorer view
 
command:
          rundll32.exe shell32.dll,Control_RunDLL main.cpl @4
    result:
          displays Power Management Properties
 
 
 
Modem
 
  module:
          MODEM.CPL
 
command:
          rundll32.exe shell32.dll,Control_RunDLL modem.cpl,,add     result:
          Runs the Add New Modem wizard
 
 
 
Multimedia & Sound Properties
 
  module:
          MMSYS.CPL
 
command:
          rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,0
    result:
          displays the Multimedia/Audio property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,1
    result:
          displays the Multimedia/Video property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,2
    result:
          displays the Multimedia/MIDI property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,3
    result:
          displays the Multimedia/CD Music property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,4
    result:
          displays the Multimedia/Advanced property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl @1
    result:
          displays the Sound Properties page
 
 
 
Network Properties
 
  module:
          NETCPL.CPL
 
command:
          rundll32.exe shell32.dll,Control_RunDLL netcpl.cpl
    result:
          displays the Networks properties, Configuration tab
 
 
 
Open With
 
  module:
        SHELL32.DLL
command:
        rundll32.exe shell32.dll,OpenAs_RunDLL {path\filename}
    result:
        displays the application/file "Open With" dialog
 
    result:
        passing the full file path and name as a parameter will cause the dialog to display the line "Click the program you want
        to use to open the file '{filename}'".
 
 
 
Passwords Properties
 
  module:
          PASSWORD.CPL
 
command:
          rundll32.exe shell32.dll,Control_RunDLL password.cpl
    result:
          displays the Passwords properties, Change Passwords tab
 
 
 
Regional Settings
 
  module:
          INTL.CPL
 
command:
          rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0
    result:
          displays the Regional Settings property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,1
    result:
          displays the Numbers property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,2
    result:
          displays the Currency property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,3
    result:
          displays the Time property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,4
    result:
          displays the Date property page
 
command:
(NT 4.0)  rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,5
    result:
          displays the Input Locales property page
 
 
Screen Saver Installation
 
  module:
        APPWIZ.CPL
 
command:
        rundll32.exe desk.cpl,InstallScreenSaver c:\win\system\Flying Windows.scr
    result:
        Installs the new screen saver and runs the display/screen saver preview property page
 
comments:
        Specify a valid path to the screen saver file to install. If you are installing a new screen saver, first copy the screen saver         file into the \windows\system folder, then execute the above command. This will install the specified saver as the current
        screen saver. It will not copy the file into the windows\system folder. Replace the string above with the name of your
        actual .scr file.
 
 
 
System Properties
 
  module:
          SYSDM.CPL
 
 
Under Win95:
command:
          rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,0
    result:
          displays the General property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,1
    result:
          displays the Device Manager property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,2
    result:
          displays the Hardware Profiles property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3
    result:
          displays the Performance property page
 
 
Under NT4.0:
command:
          rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,0
    result:
          displays the General property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,1
    result:
          displays the Performance property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,2
    result:
          displays the Environment property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3
    result:
          displays the Startup/Shutdown property page
 
 
command:
          rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,4
    result:
          displays the Hardware Profiles property page
 
command:
          rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,5
    result:
          displays the user Profiles property page
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2556949
Well....?
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 13

Expert Comment

by:Epsylon
ID: 2558797
Esk, are you still alive?
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2561865
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2564778
Esk where are you?
0
 

Author Comment

by:esk
ID: 2585573
sorry Epsylon! i'm back and this answer is excellent this works. Thanks

Esk
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2585607
Glad to hear that, Esk  :o)
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now