C # open an attribute window in the control panel

Source: Internet
Author: User
Tags intl

Find the corresponding CPL and enable a new thread to open it,

For example, system. Diagnostics. process. Start ("rundll32.exe", "shell32.dll, control_rundll TimeDate. Cpl"); opens the corresponding "Date and time properties" window.

Other windows correspond to the following:
Auxiliary options
Module: Access. CPL
Command: rundll32.exe shell32.dll, control_rundll access. CPL, 5
Result: Auxiliary options/General are displayed.

Command: rundll32.exe shell32.dll, control_rundll access. CPL, 1
Result: The secondary option/keyboard is displayed.

Command: rundll32.exe shell32.dll, control_rundll access. CPL, 2
Result: Auxiliary options/sound are displayed.

Command: rundll32.exe shell32.dll, control_rundll access. CPL, 3
Result: The secondary option/display is displayed.

Command: rundll32.exe shell32.dll, control_rundll access. CPL, 4
Result: The 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/delete programs
Module: appwiz. CPL
Command: rundll32.exe shell32.dll, control_rundll appwiz. CPL, 1
Result: installation/uninstallation is displayed.

Command: rundll32.exe shell32.dll, control_rundll appwiz. CPL, 1
Result: installation/uninstallation is displayed.

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 boot 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 set date/time is displayed.

Command: rundll32.exe shell32.dll, control_rundll TimeDate. CPL, 1
Result: The time range is displayed.

Dial-up connection (Dun)
Module: rnaui. dll
Command: rundll32.exe rnaui. dll, rnadial connection _ name
Result: The specified dial-up connection is enabled.
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: set the background.

Command: rundll32.exe shell32.dll, control_rundll desk. CPL, 1
Result: Screen Protection settings.

Command: rundll32.exe shell32.dll, control_rundll desk. CPL, 2
Result: The appearance settings.

Command: rundll32.exe shell32.dll, control_rundll desk. CPL, 3
Result: The settings window is displayed.

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

Email/Fax
Module: ml1_32.cpl
Command: rundll32.exe shell32.dll, control_rundll ml1_32.cpl
Result: MS exchange property settings appear.

Post office settings
Module: wgpocpl. CPL
Command: rundll32.exe shell32.dll, control_rundll wgpocpl. CPL
Result: The MS postoffice workgroup admin settings are displayed.

Master Settings
Module: Main. CPL
Command: rundll32.exe shell32.dll, control_rundll main. Cpl @ 0
Result: The mouse property is displayed.

Command: rundll32.exe shell32.dll, control_rundll main. Cpl @ 1
Result: The keyboard/speed attribute is displayed.

Command: rundll32.exe shell32.dll, control_rundll main. Cpl @ 1, 1
Result: The keyboard/language attributes are displayed.

Command: rundll32.exe shell32.dll, control_rundll main. Cpl @ 1, 2
Result: The keyboard/general attributes 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 attribute is displayed.

Command: rundll32.exe shell32.dll, control_rundll main. Cpl @ 4
Result: The power management properties are displayed.

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: audio 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.

Network
Module: netcpl. CPL
Command: rundll32.exe shell32.dll, control_rundll netcpl. CPL

Open with 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

Region settings
Module: intl. CPL
Command: rundll32.exe shell32.dll, control_rundll intl. CPL, 0
Result: Region settings.

Command: rundll32.exe shell32.dll, control_rundll intl. CPL, 1
Result: The number format is set.

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 is set.

Command: rundll32.exe shell32.dll, control_rundll intl. CPL, 4
Result: The date format is set.

Screen Protection
Module: appwiz. CPL
Command: rundll32.exe desk. CPL, installscreensaver C:/win/system/flying windows. scr
Result: The Screen Saver is installed and the preview property page is displayed.

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: hardware settings are displayed.

Command: rundll32.exe shell32.dll, control_rundll sysdm. CPL, 3
Result: The Performance Settings are displayed.

Ie4 settings
Module: inetcpl. CPL
Command: rundll32.exe shell32.dll, control_rundll inetcpl. CPL

Related Article

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.