Create a new application with rundll32.exe and the appropriate parameter

The following are valid control panel property page and wizard launch statements that will initiate the various control panel applets, and may also include the ability to specify the active tab on multiple-tabbed property pages. Some systems may not have all the control panel applets or related applications installed; those systems executing the statement produce no result.

To make a Control Panel applet available create a new application in the Workspace Control Console with %systemroot%\windows\rundll32.exe and the appropriate parameter.

Examples:

Power Management Properties

Module

POWERCFG.CPL

Command:

%systemroot%\rundll32.exe

parameters:

Start at startup of Workspace Control on the Startup tab.

result:

Displays the Power Management properties, Power Schemes tab.

Control Panel

Module

CONTROL.EXE

Command:

rundll32.exe shell32.dll,Control_RunDLL

parameters:

Start at startup of Workspace Control on the Startup tab.

result:

Displays all the Control Panel icons in an Explorer view.

Accessibility Properties

Module

ACCESS.CPL

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

Add New Hardware Wizard

Module

SYSDM.CPL

Command:

rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl @1

result:

Runs the Add New Hardware wizard

Safely Remove Hardware

Command line:

%windir%/system32/rundll.exe

Working Directory:

%windir%/system32

Parameters:

shell32.dll,Control_RunDLL hotplug.dll

Add New Printer Wizard

Module

SHELL32.DLL

Command:

rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL AddPrinter

result:

Runs the Add New Printer wizard

With Windows NT, it is possible to bring up a predefined Windows Dialog box for connecting to a network printer - the ConnectToPrinterDlg API. However, this dialog is not accessible by Visual Basic programs running under Windows 95. Therefore, you must use a Command-line equivalent statement to invoke the "Add Printer Wizard" under Windows 95 as detailed above.

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

Briefcase

Module

SYNCUI.DLL

Command:

rundll32.exe syncui.dll,Briefcase_Create

result:

Creates a new Briefcase on the desktop

Copy Disk Dialog

Module

DISKCOPY.DLL

Command:

rundll32.exe diskcopy.dll,DiskCopyRunDll

result:

Displays the Copy Disk dialog for removable media

Create New Shortcut

Module

APPWIZ.CPL

Command:

rundll32.exe apwiz.cpl,NewLinkHere %1

result:

Displays the Create New Shortcut dialog. Completing the filename in the dialog creates a shortcut at the location specified by %1

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. If connected, displays the connection status dialog.

Command:

rundll32.exe rnaui.dll,RnaWizard

result:

Displays the Dial Up Networking Connection Wizard

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

Display options

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.

FindFast

Module

FINDFAST.CPL

Command:

rundll32.exe shell32.dll,Control_RunDLL findfast.cpl

result:

Displays the Office FindFast control panel applet (if installed)

Fonts

Module

SHELL32.DLL

Command:

rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL FontsFolder

result:

Displays the Fonts Folder in Explorer view

Command:

rundll32.exe shell32.dll,Control_RunDLL main.cpl @3

result:

Also displays the Fonts Folder in Explorer view

Format Drive Dialog (floppy disk only)

Module

SHELL32.DLL

Command:

rundll32.exe shell32.dll,SHFormatDrive

result:

Displays the floppy disk Format Drive dialog. Causes the Drive A to be accessed on showing.

Game Controllers

Module

JOY.CPL

Command:

rundll32.exe shell32.dll,Control_RunDLL joy.cpl,,0

result:

Displays the Game Controllers General property page

Command:

rundll32.exe shell32.dll,Control_RunDLL joy.cpl,,1

result:

Displays the Game Controllers Advanced property page

HTML

Module

MSHTML.DLL

Command:

rundll32.exe mshtml.dll,PrintHTML (HTML doc to print)

result:

Sends the passed file to the printer

Internet Explorer 4 Control Panel

Module

INETCPL.CPL

Command:

rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl

result:

Displays Internet Properties, General Tab

Command:

rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,0

result:

Displays Internet Properties, General Tab (same as above)

Command:

rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,1

result:

Displays Internet Properties, Security Tab

Command:

rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,2

result:

Displays Internet Properties, Content Tab

Command:

rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,3

result:

Displays the Internet Control Panel, Connection Tab

Command:

rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,4

result:

Displays the Internet Control Panel, Programs Tab

Command:

rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,5

result:

Displays the Internet Control Panel, Advanced Tab

Joystick Properties (also see Games)

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

ODBC32 Data Source Administrator

Module

ODBCCP32.CPL

Command:

rundll32.exe shell32.dll,Control_RunDLL odbccp32.cpl

result:

Displays the ODBC32 Data Source Administrator properties dialog

Open With

Module

SHELL32.DLL

Command:

rundll32.exe shell32.dll,OpenAs_RunDLL {drive:\path\filename}

result:

Displays the application/file "Open With" dialog

result:

Passing the full file drive, 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

Power Management Properties

Module

POWERCFG.CPL

Command:

rundll32.exe shell32.dll,Control_RunDLL powercfg.cpl

result:

Displays the Power Management properties, Power Schemes tab

Printer

Module

SHELL32.DLL

Command:

rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL PrintersFolder

result:

Displays the Printers Folder (including Add Printer)

Command:

rundll32.exe shell32.dll,Control_RunDLL main.cpl @2

result:

Also displays the Printers Folder (including Add Printer)

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

Screensaver Installation

Module

APPWIZ.CPL

Command:

rundll32.exe desk.cpl,InstallScreenSaver C:\win\system\Flying Windows.scr

result:

Installs the new screensaver and runs the display/screensaver preview property page

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

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

Shutdown

Module

USER.EXE

Command:

rundll32.exe user.exe,restartwindows

result:

Forces Windows to perform a proper shutdown, and restart the computer

Command:

rundll32.exe user.exe,exitwindows

result:

Forces Windows to shutdown, and wait either to be turned off, or reset

Telephony Properties

Module

TELEPHON.CPL

Command:

rundll32.exe shell32.dll,Control_RunDLL telephon.cpl users

result:

Displays the Dialing Properties dialog.

Themes

Module

THEMES.CPL

Command:

rundll32.exe shell32.dll,Control_RunDLL themes.cpl

result:

Displays the Themes control panel app (if installed)

Themes

Module

TweakUI

Command:

rundll32.exe shell32.dll,Control_RunDLL tweakui.cpl

result:

Displays the TweakUI control panel applet (if installed)

Some dialogs may not work in the Workspace Control shell because they need the presence of explorer.exe.