Winexec (Pchar ('strcommand'), SW_SHOW); "strcommand" represents one of the following commands (using WINDOWS, do not increase): "Rundll32 Shell32, Control_Rundll" - Run Control Panel "Rundll32 Shell32, OpenAS_Rundll" - Open "open" window "rundll32 shell32, ShellAboutA Info-Box" - to open the "About" window "rundll32 shell32, Control_RunDLL desk.cpl" - open the "display properties" window "rundll32 user, cascadechildwindows" - all layered window "rundll32 user, tilechildwindows "- minimize all child windows" rundll32 user, repaintscreen "- to refresh the desktop" rundll32 shell, shellexecute Explorer "- re-run the Windows Explorer" rundll32 keyboard, disable "- lock write keyboard" rundll32 mouse, disable "- let the mouse failure "Rundll32 User, swapmousebutton" - Exchange mouse button "Rundll32 User, SetCursorpos" - Set the mouse location to (0) "Rundll32 User, WNETConnectDialog" - Open the "Mapping Network Drive" window "Rundll32 User, WnetdisconnectDialog" - Open open network drive "window" rundll32 user, disableoemlayer "- BSOD display window, (BSOD) = Blue Screen Of Death, namely blue screen" rundll32 diskcopy, DiskCopyRunDll "- open disk copy window" rundll32 rnaui.dll, RnaWizard "- run" Internet Connection Wizard, if the parameter "/ 1" is Silent mode "Rundll32 Shell32, SHFORMATDRIVE" - Open "Format Disk (A)" Rundll32 Shell32, ShexitWindow sEx -1 "- cold start Windows Explorer" rundll32 shell32, SHExitWindowsEx 1 "- off" rundll32 shell32, SHExitWindowsEx 0 "- reverse the current user" rundll32 shell32, SHExitWindowsEx 2 "Windows9x QUICK RESTART" rundll32 krnl386.exe, exitkernel "- forced to quit Windows 9X (uncognated) "Rundll Rnaui.dll, RNADial" MyConnect "- Run" Network Connection "dialog" Rundll32 Msprint2.dll, Rundll_PrintTestPage "- Select the printer and print test page" Rundll32 User, setcaretblinktime "- Set the cursor flashing speed "Rundll32 User, SetDoubleClicktime"
- Test mouse Double-click Speed "Rundll32 Sysdm.cpl, InstallDevice_Rundll" - Search for various features in non-PNP Device Control Panel Winexec ('Rundll_Rundll', 9); {Accessory Properties - Keyboard} Winexec 'rundll32.exe shell32.dll, control_rundll access.cpl, 1', 9); {Auxiliary Option Properties - Sound} WINEXEC ('Rundll_Rundll Access.cpl, 2', 9); {Accessibility Option Properties - Show} Winexec ('Rundll_Rundll Access.cpl, 3', 9); {Assist Option Properties - Mouse} Winexec ('Rundll32.exe Shell32.dll, Control_Rundll Access.cpl, 4', 9); {Accessibility option attribute - General} Winexec ('Rundll_Rundll Access.cpl, 5', 9); {Add / Remove Programs Properties - Installation / Uninstall} Winexec ('Rundll32.exe shell32. DLL, Control_Rundll AppWiz.cpl, 1 ', 9); {Add / Remove Program Properties - WINDOWS Setup} Winexec (' Rundll_Rundll AppWiz.cpl, 2 ', 9); {Add / Remove Programs Property - startup disk} Winexec ('Rundll_Rundll AppWiz.cpl, 3', 9); {Display Properties - Background} Winexec ('Rundll32.exe Shell32.dll, Control_Rundll Desk.cpl, 0', 9); {Display attribute - screen saver} Winexec ('rundll32.exe shell32.dll, control_rundll desk.cpl, 1', 9) ; {Display Properties - Appearance} Winexec ('Rundll_Rundll Desk.cpl, 2', 9); {Display Properties - Settings} Winexec ('Rundll32.exe Shell32.dll, Control_Rundll Desk.cpl, 3 ', 9); {Internet attribute - General} Winexec (' Rundll_Rundll INETCPL.CPL, 0 ', 9); {Internet Properties - Security} Winexec (' Rundll32.exe Shell32.dll, Control_Rundll inetcpl .CPL, 1 ', 9); {Internet Properties - Content} Winexec (' Rundll_Rundll INETCPL32.DLL, Control_Rundll INETCPL.CPL, 2 ', 9); {Internet Properties - Connection} Winexec (' Rundll32.exe shell32. DLL, Control_Rundll INETCPL.CPL, 3 ', 9); {Internet Properties - Program} Winexec ('
Rundll32.exe shell32.dll, control_rundll inetcpl.cpl, 4 ', 9); {Internet Properties - Advanced} Winexec (' Rundll_Rundll INETCPL32.DLL, Control_Rundll INETCPL.CPL, 5 ', 9); {Regional Setting Properties - Regional setting} Winexec ('Rundll_Rundll INTL32.DLL, Control_Rundll INTL.CPL, 0', 9); {Regional Setting Properties - Digital} Winexec ('Rundll32.exe Shell32.dll, Control_Rundll INTL.CPL, 1', 9 ); {Zone setting attribute - currency} Winexec ('Rundll_Rundll INTL32.DLL, Control_Rundll INTL.CPL, 2', 9); {Regional Setting Properties - Time} Winexec ('Rundll32.exe Shell32.dll, Control_Rundll Intl. CPL, 3 ', 9); {Zone Setting Properties - Date} Winexec (' Rundll_Rundll Intl32.dll, Control_Rundll INTL.CPL, 4 ', 9); Winexec (' Rundll32.exe shell32.dll, control_rundll joy.cpl , 0 ', 9); WINEXEC (' Rundll_Rundll Joy 32.dll, Control_Rundll Joy.cpl, 1 ', 9); {Mouse Properties} Winexec (' Rundll32.exe Shell32.dll, Control_Rundll Main.cpl ', 9) {Multimedia Properties - Audio} Winexec ('Rundll_Rundll MMSys.cpl, 0', 9); {Multimedia Properties - Video} Winexec ('Rundll32.exe Shell32.dll, Control_Rundll MMSys.cpl, 1 ', 9); {Multimedia Properties - MIDI} Winexec (' Rundll32.exe shell32.dll, Control_Rundll MMSYS.CPL, 2 ', 9); {Multimedia Property - CD Music} Winexec (' Rundll_Rundll MMSys.cpl, 3 ', 9); {Multimedia Properties - Device} Winexec (' Rundll32. exe shell32.dll, Control_RunDLL Mmsys.cpl, 4 ', 9); {modem properties} winexec (' rundll32.exe shell32.dll, Control_RunDLL Modem.cpl ', 9); winexec (' rundll32.exe shell32.dll, Control_RunDLL Netcpl.cpl ', 9); {Password Properties} Winexec (' Rundll_Rundll Password.cpl ', 9); {Scanner and Digital Camera Attribute} 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 ('Rundll_Rundll Shell32.dll, Control_Rundll Sysdm.cpl, 1', 9); {System Properties - Hardware Profile} Winexec ('Rundll32.exe Shell32.dll, Control_Rundll Sysdm. CPL, 2 ', 9); {System Properties - Performance} Winexec (' Rundll_Rundll Shell32.dll, Control_Rundll Sysdm.cpl, 3 ', 9); {Date / Time Properties} 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); About the judgment processing after the call: First declare a Cardinal type variable RTNCardinal to get the return value for judgment, RTNCardinal: = WINEXEC ('Rundll32.exe shell32.dll, control_rundll telephon.cpl', 9); return value Possible Cause 0 Program Exceeding the memory error_bad_format program for an illegal Win32.exe program error_file_not_found specified file Did not find an error_path_not_found specified path Did not find how to use: Click "Start-MS-DOS Mode", enter the DOS window, and type "Rundll32. Exe User.exe, RestartWindows, then press Enter, then you will see it, the machine is restarted! How is it, is it very interesting? Of course, Rundll's function is more than just restarting your machine. In fact, Rundll, as the name suggests, executing the DLL, its function is to call Windows dynamic link library with command columns, Rundll32.exe and Rundll.exe is that the former is a 32-bit link library, and The latter is the 16-bit link library, and their command format is: rundll.exe, here you should pay attention to three points: DLL file name cannot be included in space, such as this file is located in the C: / Program files / directory, You have to change this path to C: / Progra ~ 1 /; 2. DLL file name and the comma between the DLL entry point cannot be less, otherwise the program will be wrong and will not give any information! 3. This is the most important point: Rundll cannot be used to call the DLL containing the return value parameter, such as getUserName (), getTextFace (), etc. in Win32API. In Visual Basic, an instruction shell that performs an external program is: shell "command column" If you can match Rundll32.exe, you can use the shell instruction to make your VB have the effect of other methods. : Still restart as an example, traditional methods require you to create a module in the VB project, then write to WinAPI declaration, and finally call in the program.
And now just one sentence: shell "rundll32.exe user.exe, restower" is getting it! Is it convenient? In fact, rundll32.exe has a unique advantage in calling various Windows control panels and system options. Below, I will listed the Rundll's instructions collected on the Internet (very useful, saving you a lot of time !!), for everyone in program design: Run: Rundll32.exe Shell32.dll, control_rundll function: Display Control Panel Command Columns: Rundll32.exe Shell32.dll, Control_Rundll Access.cpl ,, 1 Features: Display "Control Panel - Auxiliary Options - Keyboard" Options Window Command Columns: Rundll32.exe Shell32.dll , 2 function: Display "Control Panel - Auxiliary Options - Sound" option window command column: rundll32.exe shell32.dll, control_rundll access.cpl,, 3 Function: Display "Control Panel - Auxiliary Options - Display "Options Window Command Columns: Rundll32.exe Shell32.dll, Control_Rundll Access.cpl, 4 Function: Display" Control Panel - Auxiliary Options - Hand Mouse "option window command column: rundll32.exe shell32.dll, control_rundll access.cpl, , 5 Function: Display "Control Panel - Auxiliary Options - Traditional" option window command column: rundll32.exe shell32.dll, control_rundll sysdm.cpl @ 1 Function: Execute Control Panel - Add New Hardware Wizard. Command Columns: Rundll32.exe Shell32.dll, ShhelpShortcuts_Rundll Addprinter Features: Execute Control Panel - Add New Princess Wizard. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll AppWiz.cpl, 1 Function: Display "Control Panel - Add / Remove Program - Install / Uninstall" panel. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll AppWiz.cpl, 2 Features: Display "Control Panel - Add / Remove Program - Installing the Windows" panel. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll AppWiz.cpl, 3 Function: Display "Control Panel - Add / Remove Program - Start Disk" panel. Command Columns: Rundll32.exe Syncui.dll, briefcase_create features: establish a new "My Briefcase" on the desktop. Command Column: Rundll32.exe DiskCopy.dll, DiskCopyRundll feature: Display Copy Soft Disk Window Command Columns: Rundll32.exe APWIZ.CPL, NewLinkHere% 1 Features: Displays the "Establishing Shortcut" dialog, the location established Decided by% 1 parameter. Command Column: Rundll32.exe shell32.dll, control_rundll timedate.cpl, 0 function: Displays the Date and Time option window.
Command Columns: 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 dial-up window for a dial-up connection. If you have dial-up, display the window of the current connection state. Command Columns: Rundll32.exe RNAUI.dll, RNAWizard Features: Displays the Window of the New Dial-up Connection wizard. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll Desk.cpl, 0 Features: Displays the Display Properties - Background option window. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll Desk.cpl, 1 Function: Displays the Display Properties - Block Protection option window. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll Desk.cpl, 2 Features: Displays the Display Properties - Appearances option window. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll Desk.cpl, 3 Features: Displays the Show Properties - Properties option window. Command Columns: Rundll32.exe Shell32.dll, ShhelpShortcuts_Rundll Fontsfolder Features: Displays Windows's Fonts profile. Command Column: rundll32.exe shell32.dll, control_rundll main.cpl @ 3 function: Similarly, the "Font" profile clip is displayed in WINDOWS. Command Column: Rundll32.exe Shell32.dll, SHFORMATDRIVE Function: Displays the Format Soft Disk dialog. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll Joy.cpl, 0 Function: Displays the Control Panel - Game Controller - General option window. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll Joy.cpl, 1 Function: Displays the "Control Panel - Game Controller - Advanced" option window. Command Columns: Rundll32.exe Mshtml.dll, Printhtml (HTML Document) Function: The HTML document is printed. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll Mlcfg32.cpl: Displays the Microsoft Exchange General Options Window. Command Columns: Rundll32.exe shell32.dll, control_rundll main.cpl @ 0 function: Displays the Control Panel-Hull Mouse option. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll Main.cpl @ 1 Features: Displays the Control Panel-Keyboard Properties - Speed option window. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll Main.cpl @ 1,, 1 Function: Displays the Control Panel - Keyboard Properties - Language option window. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll Main.cpl @ 2 Function: Displays the Windows "Printing Machine" profile. Command Columns: rundll32.exe shell32.dll, control_rundll main.cpl @ 3 function: Displays Windows "Font" profile.
Command Columns: Rundll32.exe Shell32.dll, Control_Rundll Main.cpl @ 4 Function: Displays the Control Panel - Input Properties - Input Methods window. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll Modem.cpl, ADD Function: Perform the Add New Modem wizard. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll MMSys.cpl, 0 Features: Displays the Control Panel-Multimedia Properties - Audio property page. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll MMSys.cpl, 1 Function: Displays the Control Panel - Multimedia Properties - Video property page. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll MMSys.cpl, 2 Function: Displays the Control Panel - Multimedia Properties-MIDI property page. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll MMSys.cpl, 3 Features: Displays the Control Panel-Multimedia Properties-CD Music Properties page. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll MMSys.cpl, 4 Function: Displays the Control Panel - Multimedia Properties - Device property page. Command Columns: 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: Displays the Control Panel - Network option window. Command Column: Rundll32.exe Shell32.dll, Control_Rundll Odbccp32.cpl: Displays the ODBC32 Data Management Options window. Command Columns: Rundll32.exe Shell32.dll, OpenAS_RUNDLL Function: Displays the "Open Mode" dialog of the specified file (Drive: / Path / filename). Command Columns: Rundll32.exe Shell32.dll, Control_Rundll Password.cpl: Displays the Control Panel - Password option window. Command Column: Rundll32.exe Shell32.dll, Control_Rundll PowerCfg.cpl: Displays the Control Panel - Power Management Properties option window. Command Columns: Rundll32.exe Shell32.dll, Shhelpshortcuts_Rundll PrintersFolder Features: Displays Windows "Printing Machine" profile. (With rundll32.exe shell32.dll, control_rundll main.cpl @ 2) Command Columns: Rundll32.exe Shell32.dll, Control_Rundll INTL.CPL,, 0 Function: Displays the Control Panel - Region Setting Properties - Region Settings window. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll INTL.CPL, 1 Function: Displays the Control Panel - Zone Setting Properties - Number Options window. Command Columns: Rundll32.exe Shell32.dll, Control_Rundll INTL.CPL, 2 Function: Displays the Control Panel - Zone Setting Properties - Money option window.