The Code is as follows!
View code
Class program {static void main (string [] ARGs) {PROCESS p = new process (); p. startinfo. workingdirectory = environment. getfolderpath (environment. specialfolder. system); p. startinfo. filename = "rundll32.exe"; // lock screen p. startinfo. arguments = "user32.dll, lockworkstation"; p. start ();/** command column: rundll32.exe user.exe, restartwindows function: system restart command column: rundll32.exe user.exe, exitwindows function: disable the system command column: rundll32.exe .. Command column: cmduser.exe, restartwindows function: system restart command column: rundll32.exe user.exe, exitwindows function: Disable system command column: cmdshell32.dll, control_rundll function: Display Control Panel command column: rundll32.exe shell32.dll, control_rundll access. CPL, 1 function: display "Control Panel-Auxiliary options-keyboard" option window command column: rundll32.exe shell32.dll, control_rundll access. CPL, 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" Option window command column: rundll32.exe shell32.dll, control_rundll access. CPL, 4 function: display "Control Panel-Auxiliary options-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: 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: display "Control Panel-Add/delete programs-install/uninstall" panel. Command column: rundll32.exe shell32.dll, control_rundll appwiz. CPL, 2 function: display "Control Panel-Add/delete programs-install Windows" panel. Command column: rundll32.exe shell32.dll, control_rundll appwiz. CPL, 3 function: display "Control Panel-Add/delete programs-boot disk" panel. Command column: rundll32.exe syncui. dll, briefcase_create function: Create a new "My Briefcase" on the desktop ". Command column: rundll32.exe diskcopy. DLL and diskcopyrundll functions: displays the command column rundll32.exe apwiz for copying a disk. CPL, newlinkhere % 1: 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: display the "Time Zone" option window. Command column: rundll32.exe rnaui. dll, rnadial [name of a dial-up connection] function: displays the dial-up window of 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: display "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: display "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: also displays the "font" folder of windows. Command column: rundll32.exe shell32.dll, shformatdrive function: display the format disk 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 option window. Command column: rundll32.exe shell32.dll, control_rundll main. Cpl @ 0 function: displays "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: display the windows "Printer" folder. Command column: rundll32.exe shell32.dll, control_rundll main. Cpl @ 3 function: Display 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: Execute the "Add new modem" Wizard. Command column: rundll32.exe shell32.dll, control_rundll mmsys. CPL, 0 function: displays the "control panel-multimedia properties-Audio" attribute page. Command column: rundll32.exe shell32.dll, control_rundll mmsys. CPL, 1 function: displays the "control panel-multimedia properties-video" attribute page. Command column: rundll32.exe shell32.dll, control_rundll mmsys. CPL, 2 function: display "Control Panel-multimedia properties-Midi" property page. Command column: rundll32.exe shell32.dll, control_rundll mmsys. CPL, 3 function: display the "control panel-multimedia properties-CD music" attribute page. Command column: rundll32.exe shell32.dll, control_rundll mmsys. CPL, 4 function: display 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 {drive: path ilename} function: displays the open mode dialog box for the specified file (drive: path ilename. Command column: rundll32.exe shell32.dll, control_rundll password. Cpl function: displays the "control panel-Password" option window. 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: display 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: display "Control Panel-region settings properties-region Settings" option window. 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: displays the "control panel-region settings properties-currency" option window. 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 property-Date" option window. Command column: rundll32.exe desk. CPL, installscreensaver [Screen saver file name] function: sets the specified screen saver file to Windows and displays the screen saver Properties window. Command column: rundll32.exe shell32.dll, control_rundll sysdm. CPL, 0 function: display "Control Panel-system properties-traditional" attribute window. Command column: rundll32.exe shell32.dll, control_rundll sysdm. CPL, 1 function: display "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: display "Control Panel-system properties-performance" attribute window. Command column: rundll32.exe user.exe, restartwindows function: force close all programs and restart the machine. Command column: rundll32.exe user.exe, exitwindows function: force close all programs and shut down. Command column: rundll32.exe shell32.dll, control_rundll telephon. cpl function: display the command column of the "dial property" option window: rundll32.exe shell32.dll, control_rundll themes. cpl function: displays the "desktop theme" option panel */}}