Detailed description of the Rundll32.exe file [Post]

Source: Internet
Author: User
Tags intl
Winexec (Pchar ('strcommand'), sw_Show );
"StrCommand" indicates one of the following commands (do not enclose them with quotation marks when running in Windows ):
"Rundll32 shell32.dll, Control_RunDLL"-Operation Control Panel
"Rundll32 shell32.dll, OpenAs_RunDLL"-open the "open mode" Window
"Rundll32 shell32.dll, ShellAboutA Info-Box"-open the "about" Window
"Rundll32 shell32.dll, Control_RunDLL desk. cpl"-open the "show properties" Window
"Rundll32 user.exe, cascadechildwindows"-cascade all windows
"Rundll32 user.exe, tilechildwindows"-minimize all subwindows
"Rundll32 user.exe, repaintscreen"-refresh the Desktop
"Rundll32 shell. dll, shellexecute Explorer"-run Windows Explorer again
"Rundll32 keyboard, disable"-lock write keyboard
"Rundll32 mouse, disable"-invalidates the mouse
"Rundll32 user.exe, swapmousebutton"-switch the mouse button
"Rundll32 user.exe, setcursorpos"-set the mouse position to (0, 0)
"Rundll32 user.exe, wnetconnectdialog"-open the "ing network drive" Window
"Rundll32 user.exe, wnetdisconnectdialog"-open the "Disconnect network drive" Window
"Rundll32 user.exe, disableoemlayer"-The BSOD window is displayed. (BSOD) = Blue Screen
Death: Blue Screen
"Rundll32 diskcopy, DiskCopyRunDll"-open the disk copy window
"Rundll32 rnaui, RnaWizard"-run the "Internet Connection Wizard ",
If the parameter "/1" is added, the mode is silent.
"Rundll32 shell32.dll, SHFormatDrive"-open the "format disk (A)" Window
"Rundll32 shell32.dll, SHExitWindowsEx-1"-cold start Windows Explorer
"Rundll32 shell32.dll, SHExitWindowsEx 1"-Shutdown
"Rundll32 shell32.dll, SHExitWindowsEx 0"-return to current user
"Rundll32 shell32.dll, SHExitWindowsEx 2" Windows9x quick restart
"Rundll32 krnl386.exe, exitkernel"-force exit Windows 9x (no confirmation)
"Rundll rnaui. dll, RnaDial" MyConnect "-Run" network connection "dialog box
"Rundll32 msprint2.dll, RUNDLL_PrintTestPage"-select a printer and print the test page
"Rundll32 user.exe, setcaretblinktime"-set the cursor blinking speed
"Rundll32 user.exe, setdoubleclicktime"-test the speed of double-clicking the mouse
"Rundll32 sysdm. cpl, InstallDevice_Rundll"-search for non-PnP Devices
Functions in the control panel

Winexec('rundll32.exe shell32.dll, Control_RunDLL ', 9 );
{Auxiliary option properties-keyboard}
Winexec('rundll32.exe shell32.dll, Control_RunDLL access. cpl, 1', 9 );
{Auxiliary option property-sound}
Winexec('rundll32.exe shell32.dll, Control_RunDLL access. cpl, 2', 9 );
{Auxiliary option property-display}
Winexec('rundll32.exe shell32.dll, Control_RunDLL access. cpl, 3', 9 );
{Secondary option properties-mouse}
Winexec('rundll32.exe shell32.dll, Control_RunDLL access. cpl, 4', 9 );
{Auxiliary option properties-General}
Winexec('rundll32.exe shell32.dll, Control_RunDLL access. cpl, 5', 9 );
{Add/delete program properties-install/uninstall}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Appwiz. cpl, 1', 9 );
{Add/delete program properties-Windows Installer}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Appwiz. cpl, 2', 9 );
{Add/delete program properties-boot disk}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Appwiz. cpl, 3', 9 );
{Display property-Background}
Winexec('rundll32.exe shell32.dll, Control_RunDLL desk. cpl, 0', 9 );
{Display Properties-Screen Saver}
Winexec('rundll32.exe shell32.dll, Control_RunDLL desk. cpl, 1', 9 );
{Display property-appearance}
Winexec('rundll32.exe shell32.dll, Control_RunDLL desk. cpl, 2', 9 );
{Display Properties-settings}
Winexec('rundll32.exe shell32.dll, Control_RunDLL desk. cpl, 3', 9 );
{Internet properties-General}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Inetcpl. cpl, 0 ',
9 );
{Internet properties-security}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Inetcpl. cpl, 1 ',
9 );
{Internet properties-content}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Inetcpl. cpl, 2 ',
9 );
{Internet properties-connection}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Inetcpl. cpl, 3 ',
9 );
{Internet properties-programs}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Inetcpl. cpl, 4 ',
9 );
{Internet properties-advanced}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Inetcpl. cpl, 5 ',
9 );
{Region setting property-region setting}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Intl. cpl, 0', 9 );
{Region setting property-number}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Intl. cpl, 1', 9 );
{Region setting property-currency}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Intl. cpl, 2', 9 );
{Region setting property-time}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Intl. cpl, 3', 9 );
{Region setting property-date}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Intl. cpl, 4', 9 );
 
Winexec('rundll32.exe shell32.dll, Control_RunDLL Joy. cpl, 0', 9 );
 
Winexec('rundll32.exe shell32.dll, Control_RunDLL Joy. cpl, 1', 9 );
{Mouse properties}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Main. cpl ', 9 );
{Multimedia properties-audio}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Mmsys. cpl, 0', 9 );
{Multimedia properties-video}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Mmsys. cpl, 1', 9 );
{Multimedia attributes-MIDI}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Mmsys. cpl, 2', 9 );
{Multimedia attributes-CD music}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Mmsys. cpl, 3', 9 );
{Multimedia property-device}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Mmsys. cpl, 4', 9 );
{Modem attributes}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Modem. cpl ', 9 );
 
Winexec('rundll32.exe shell32.dll, Control_RunDLL Netcpl. cpl ', 9 );
{Password attribute}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Password. cpl ', 9 );
{SCANNER and digital camera attributes}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Sticpl. cpl ', 9 );
{System properties-General}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Sysdm. cpl, 0', 9 );
{System properties-Device Manager}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Sysdm. cpl, 1', 9 );
{System properties-hardware configuration file}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Sysdm. cpl, 2', 9 );
{System properties-performance}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Sysdm. cpl, 3', 9 );
{Date/time attribute}
Winexec('rundll32.exe shell32.dll, Control_RunDLL timedate. cpl ', 9 );
{Power Management Properties}
Winexec('rundll32.exe shell32.dll, Control_RunDLL Powercfg. cpl ', 9 );
 
Winexec('rundll32.exe shell32.dll, Control_RunDLL Telephon. cpl ', 9 );
Suggestions on how to judge and handle the call:
Declare a cardinal-type variable RtnCardinal to obtain the return value. For example:
RtnCardinal: = winexec('rundll32.exe shell32.dll, Control_RunDLL
Telephon. cpl ', 9 );
Possible causes of returned values
0 program exceeds memory
ERROR_BAD_FORMAT is an invalid Win32.EXE program.
ERROR_FILE_NOT_FOUND: the specified file is not found.
ERROR_PATH_NOT_FOUND specified path not found

Usage:
Click Start-Program-Ms-Dos to enter the Dos window, and then type "rundll32.exe
User.exe, restartwindows ", Press enter, then you will see that the machine has been restarted! How is it interesting?
Of course, the function of Rundll is not just to restart your machine. The difference is that the former is a 32-bit link database, and the latter is a 16-bit link database. Their command format is:
RUNDLL. EXE ,,
Note the following three points: 1. the Dll file name cannot contain spaces. For example, the file is stored in c: \ Program.
Files \ directory. Change the path to c: \ Progra ~ 1 \; 2. the Dll file name and the Dll entry point must have fewer commas. Otherwise, the program will fail and no information will be provided! 3. This is the most important point: Rundll cannot be used to call a Dll containing return value parameters, such as GetUserName () and GetTextFace () in Win32API. In the Visual
Basic, provides a command Shell for executing external programs, in the format:
Shell "command column"
If rundll32.exe is ready to use Shell commands, it will make your VB program have an effect that is hard to achieve or even impossible to achieve in other ways: restart is still used as an example. The traditional method requires you to create a module in the VB project, then write the WinAPI declaration before calling in the program. Now, you only need one sentence:
Shell restart rundll32.exe
User.exe and restartwindows are all done! Is it much more convenient?
In contrast, rundll32.exe has unique advantages in calling various Windows control panels and System Options. Next, I will list the Rundll commands I have collected over the Internet as follows (very useful, can save you a lot of calls to Windows
API time !!), For reference in programming:
Command column: rundll32.exe shell32.dll, Control_RunDLL
Function: Display Control Panel
Command column: rundll32.exe shell32.dll, Control_RunDLL access. cpl, 1
Function: displays the "control panel-Auxiliary options-keyboard" option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL access. cpl, 2
Function: displays the "control panel-Auxiliary options-sound" option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL access. cpl, 3
Function: displays the "control panel-Auxiliary options-display" option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL access. cpl, 4
Function: displays the control panel-secondary option-mouse option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL access. cpl, 5
Function: displays the "control panel-Auxiliary options-traditional" option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL sysdm. cpl @ 1
Function: run the "control panel-add new hardware" Wizard.
Command column: rundll32.exe shell32.dll, SHHelpShortcuts_RunDLL AddPrinter
Function: run the control panel-add new printer wizard.
Command column: rundll32.exe shell32.dll, Control_RunDLL appwiz. cpl, 1
Function: the "control panel-Add/delete programs-install/uninstall" panel is displayed.
Command column: rundll32.exe shell32.dll, Control_RunDLL appwiz. cpl, 2
Function: the "control panel-Add/delete programs-install Windows" panel is displayed.
Command column: rundll32.exe shell32.dll, Control_RunDLL appwiz. cpl, 3
Function: the "control panel-Add/delete programs-boot disk" panel is displayed.
Command column: rundll32.exe syncui. dll, Briefcase_Create
Function: Create a new "My Briefcase" on the desktop ".
Command column: rundll32.exe diskcopy. dll, DiskCopyRunDll
Function: displays the copy disk Window.
Command column: rundll32.exe apwiz. cpl, NewLinkHere % 1
Function:
The create shortcut dialog box is displayed. The location of the created shortcut is determined by the % 1 parameter.
Command column: rundll32.exe shell32.dll, Control_RunDLL timedate. cpl, 0
Function: displays the "Date and Time" option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL timedate. cpl, 1
Function: displays the "Time Zone" option window.
Command column: rundll32.exe rnaui. dll, RnaDial [name of a dial-up connection]
Function:
Displays the dialing window for a dial-up connection. If a dial-up connection has been established, the current connection status window is displayed.
Command column: rundll32.exe rnaui. dll, RnaWizard
Function: displays the window of the new dial-up connection wizard.
Command column: rundll32.exe shell32.dll, Control_RunDLL desk. cpl, 0
Function: displays the "Display Properties-background" option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL desk. cpl, 1
Function: displays the "Display Properties-Screen Saver" option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL desk. cpl, 2
Function: displays the display properties-appearance option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL desk. cpl, 3
Function: displays the "show properties-properties" option window.
Command column: rundll32.exe shell32.dll, SHHelpShortcuts_RunDLL FontsFolder
Function: display the "font" folder of Windows.
Command column: rundll32.exe shell32.dll, Control_RunDLL main. cpl @ 3
Function: displays the "font" folder of Windows.
Command column: rundll32.exe shell32.dll, SHformatDrive
Function: displays the formatting dialog box.
Command column: rundll32.exe shell32.dll, Control_RunDLL joy. cpl, 0
Function: displays the "control panel-Game Controller-General" option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL joy. cpl, 1
Function: displays the "control panel-game controller-advanced" option window.
Command column: rundll32.exe mshtml. dll, PrintHTML (HTML document)
Function: Print HTML documents.
Command column: rundll32.exe shell32.dll, Control_RunDLL ml1_32.cpl
Function: displays the Microsoft Exchange General options window.
Command column: rundll32.exe shell32.dll, Control_RunDLL main. cpl @ 0
Function: displays the "control panel-mouse" option.
Command column: rundll32.exe shell32.dll, Control_RunDLL main. cpl @ 1
Function: displays the "control panel-keyboard properties-speed" option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL main. cpl @ 1, 1
Function: displays the "control panel-keyboard properties-language" option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL main. cpl @ 2
Function: displays the Windows "Printer" folder.
Command column: rundll32.exe shell32.dll, Control_RunDLL main. cpl @ 3
Function: displays the Windows "font" folder.
Command column: rundll32.exe shell32.dll, Control_RunDLL main. cpl @ 4
Function: displays the "control panel-Input Method properties-Input Method" option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL modem. cpl, add
Function: run the Add new modem wizard.
Command column: rundll32.exe shell32.dll, Control_RunDLL mmsys. cpl, 0
Function: displays the "control panel-multimedia properties-Audio" property page.
Command column: rundll32.exe shell32.dll, Control_RunDLL mmsys. cpl, 1
Function: displays the "control panel-multimedia properties-video" property page.
Command column: rundll32.exe shell32.dll, Control_RunDLL mmsys. cpl, 2
Function: displays the "control panel-multimedia properties-MIDI" property page.
Command column: rundll32.exe shell32.dll, Control_RunDLL mmsys. cpl, 3
Function: displays the "control panel-multimedia properties-CD music" property page.
Command column: rundll32.exe shell32.dll, Control_RunDLL mmsys. cpl, 4
Function: displays the "control panel-multimedia properties-devices" property page.
Command column: rundll32.exe shell32.dll, Control_RunDLL mmsys. cpl @ 1
Function: displays the control panel-sound option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL netcpl. cpl
Function: displays the control panel-Network option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL odbccp32.cpl
Function: displays the ODBC32 data management option window.
Command column: rundll32.exe shell32.dll, OpenAs_RunDLL
Function: displays the open mode dialog box for the specified file (drive: \ path \ filename.
Command column: rundll32.exe shell32.dll, Control_RunDLL password. cpl
Function: the "control panel-Password" option window is displayed.
Command column: rundll32.exe shell32.dll, Control_RunDLL powercfg. cpl
Function: displays the "control panel-Power Management Properties" option window.
Command column: rundll32.exe shell32.dll, SHHelpShortcuts_RunDLL
PrintersFolder
Function: displays the Windows "Printer" folder. (Same as rundll32.exe
Shell32.dll, Control_RunDLL main. cpl @ 2)
Command column: rundll32.exe shell32.dll, Control_RunDLL intl. cpl, 0
Function: the "control panel-region settings properties-region Settings" option window is displayed.
Command column: rundll32.exe shell32.dll, Control_RunDLL intl. cpl, 1
Function: displays the "control panel-region settings properties-numbers" option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL intl. cpl, 2
Function: the "control panel-region settings properties-currency" option window is displayed.
Command column: rundll32.exe shell32.dll, Control_RunDLL intl. cpl, 3
Function: displays the "control panel-region settings property-time" option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL intl. cpl, 4
Function: displays the "control panel-region settings properties-Date" option window.
Command column: rundll32.exe desk. cpl, InstallScreenSaver [Screen saver file name]
Function:
Set the specified screen saver file to Windows and display the screen saver Properties window.
Command column: rundll32.exe shell32.dll, Control_RunDLL sysdm. cpl, 0
Function: displays the "control panel-system properties-traditional" attribute window.
Command column: rundll32.exe shell32.dll, Control_RunDLL sysdm. cpl, 1
Function: displays the "control panel-system properties-Device Manager" Properties window.
Command column: rundll32.exe shell32.dll, Control_RunDLL sysdm. cpl, 2
Function: displays the "control panel-system properties-hardware configuration file" attribute window.
Command column: rundll32.exe shell32.dll, Control_RunDLL sysdm. cpl, 3
Function: displays the "control panel-system properties-performance" attribute window.
Command column: rundll32.exe user.exe, restartwindows
Function: forcibly shut down all programs and restart the machine.
Command column: rundll32.exe user.exe, exitwindows
Function: forcibly shut down all programs and shut down them.
Command column: rundll32.exe shell32.dll, Control_RunDLL telephon. cpl
Function: displays the "dial property" option window.
Command column: rundll32.exe shell32.dll, Control_RunDLL themes. cpl
Function: displays the desktop theme option 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.