VC uses Shellexecut to start the operation of the function module in the Control Panel

Source: Internet
Author: User
Tags intl set time

folders, files, URLs can create shortcuts, control Panel settings can also create shortcuts, the following is a shortcut to the command, use: In the desktop or folder in the blank right click, select New, shortcut, "Please type the location of the project" Enter the following command, Then next enter the name of the shortcut. This completes a control Panel shortcut, as well as the Start menu, run, enter the following command to open the Control Panel directly in a setting.


Control Panel
Module: control.exe
Command: Rundll32.exe shell32.dll,Control_RunDLL
Result: The Control Panel window is displayed.

Accessibility Options
Module: access.cpl
Command: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,5
Result: Show accessibility Options/General.

Command: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,1
Result: the auxiliary options/keyboard is displayed.

Command: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,2
Result: Displays auxiliary options/sounds.

Command: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,3
Result: Show auxiliary options/display.

Command: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,4
Result: A secondary option/mouse is displayed.

Add New Hardware
Module: sysdm.cpl
Command: rundll32.exe shell32.dll,control_rundll sysdm.cpl @1

Add a new printer
Module: Shell32.dll
Command: Rundll32.exe shell32.dll,shhelpshortcuts_rundll addprinter

Add/Remove Programs
Module: appwiz.cpl

Command: rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1
Result: Display installation/uninstallation.

Command: rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1
Result: Display installation/uninstallation.

Command: rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2
Result: Windows installation is displayed.

Command: rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,3
Result: The startup disk is displayed.

Copy Disk
Module: Diskcopy.dll
Command: Rundll32.exe Diskcopy.dll,diskcopyrundll

Time/Date
Module: timedate.cpl

Command: rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0
Result: The setting date/time is displayed.

Command: rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,1
Result: Displays the set time area.

Dial-up connection (DUN)
Module: Rnaui.dll
Command: Rundll32.exe rnaui.dll,rnadial Connection _ name
Result: The specified dial-up connection is opened.
Example:
x= Shell ("Rundll32.exe rnaui.dll,rnadial" & "Connection _ Name", 1)

Display
Module: desk.cpl
Command: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0
Result: Background settings.

Command: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1
Result: Screen saver settings.

Command: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2
Result: Appearance settings.

Command: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3
Result: the Settings window.

Joystick
Module: joy.cpl
Command: rundll32.exe shell32.dll,control_rundll joy.cpl

Mail/Fax
Module: mlcfg32.cpl
Command: rundll32.exe shell32.dll,control_rundll mlcfg32.cpl
Result: The MS Exchange property setting appears.

Post Office settings
Module: wgpocpl.cpl
Command: rundll32.exe shell32.dll,Control_RunDLL wgpocpl.cpl
Result: The MS postoffice Workgroup Admin setting is displayed.

Master Settings
Module: main.cpl
Command: rundll32.exe shell32.dll,control_rundll main.cpl @0
Result: Mouse properties are displayed.

Command: rundll32.exe shell32.dll,control_rundll main.cpl @1
Result: Keyboard/Speed properties are displayed.

Command: rundll32.exe shell32.dll,control_rundll main.cpl @1,,1
Result: Displays keyboard/language properties.

Command: rundll32.exe shell32.dll,control_rundll main.cpl @1,,2
Result: Keyboard/General properties are displayed.

Command: rundll32.exe shell32.dll,control_rundll main.cpl @2
Result: The printer properties are displayed.

Command: rundll32.exe shell32.dll,control_rundll main.cpl @3
Result: The font properties are displayed.

Command: rundll32.exe shell32.dll,control_rundll main.cpl @4
Result: Displays power management properties.

Add Modem
Module: modem.cpl
Command: rundll32.exe shell32.dll,Control_RunDLL modem.cpl,,add

Multimedia
Module: mmsys.cpl
Command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,0
Result: sound.

Command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,1
Result: Video.

Command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,2
Result: Sound MIDI.

Command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,3
Result: cd/music.

Command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,4
Result: Advanced.

Command: rundll32.exe shell32.dll,control_rundll mmsys.cpl @1
Result: sound.

Internet
Module: netcpl.cpl
Command: rundll32.exe shell32.dll,Control_RunDLL netcpl.cpl

Open with Mode window
Module: Shell32.dll
Command: Rundll32.exe shell32.dll,openas_rundll path\filename

Password
Module: password.cpl
Command: rundll32.exe shell32.dll,Control_RunDLL password.cpl

Regional Settings
Module: intl.cpl
Command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0
Result: Regional Settings.

Command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,1
Result: number format settings.

Command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,2
Result: The amount format is set.

Command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,3
Result: the time format setting.

Command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,4
Result: Date format setting.

Screen saver
Module: appwiz.cpl
Command: rundll32.exe desk.cpl,installscreensaver c:\winnt\system\Flying WINDOWS.SCR
Result: The installation screen protects and displays the Preview property page.

System settings
Module: sysdm.cpl
Command: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,0
Result: The general settings are displayed.

Command: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,1
Result: The device management settings are displayed.

Command: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,2
Result: The hardware settings are displayed.

Command: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3
Result: The performance setting is displayed.

IE settings
Module: inetcpl.cpl

Command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,0
Result: General settings.

Command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,1
Result: Security settings.

Command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,2
Result: Privacy settings.

Command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,3
Result: Content settings.

Command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,4
Result: Connection settings.

Command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,5
Result: Program settings.

Command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,6
Result: Advanced settings.


How to use:
For example, you pull a button and then set its run function to be: Onbtndesk ()
void Youdlg:onbtndesk ()
{
Launch Display Settings panel
:: ShellExecute (NULL, "OPEN", "rundll32.exe",
"Shell32.dll control_rundll desk.cpl", null,sw_show);//Open the Sound Control Panel

:: ShellExecute (null,_t ("OPEN"), _t ("Rundll32.exe"), _t ("Shell32.dll control_rundll mmsys.cpl,,1"), null,sw_show);

Mouse Properties
:: ShellExecute (null,_t ("OPEN"), _t ("Rundll32.exe"), _t ("Shell32.dll control_rundll main.cpl,,4"), null,sw_show);

System Properties
:: ShellExecute (null,_t ("OPEN"), _t ("Rundll32.exe"), _t ("Shell32.dll control_rundll sysdm.cpl,,1"), null,sw_show);


}

VC uses Shellexecut to start the operation of the function module in the Control Panel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.