Frequently Windows9x friends must not be unfamiliar with Rundll32.exe and Rundll.exe, but because these two programs are originally limited to internal use in Microsoft, they really know how to use their friends. . So, if you are still unclear, let me tell you. First, please do a small experiment (please save the result of the program you are performing in advance, otherwise ...): 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 using other methods. Even if it is difficult to implement. : 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 {Drive: / Path / filename} Features: 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.