View unanswered posts | View active topics It is currently 08 Oct 2015 17:36

Post new topic Reply to topic  [ 7 posts ] 
Use RunDll32 utility [Topic] 
Author Message

Joined: 26 Oct 2011 22:38
Posts: 1007
Location: Egypt
Post Use RunDll32 utility [Topic]
I Found a website, and it has a explanation of the RunDll32 utility,
it has a very cool usage like The blue screen of death that windows shows or the beep sound that you can
do using ascii "that never worked for me" or lock keyboard and mouse.

I only posted a few of the codes, the rest is here
rundll32 shell32,OpenAs_RunDLL \dir\filename.txt                Open The 'Open With...' Window
rundll32 shell32,ShellAboutA Info-Box                           Open 'About Window Window' - works Windows 8
rundll32 shell32,Control_RunDLL desk.cpl                        Open Display Properties - works Windows 8
rundll32 user,cascadechildwindows                               Cascade All Windows
rundll32 user,tilechildwindows                                  Minimize All Child-Windows
rundll32 user,repaintscreen                                     Refresh Desktop
rundll32 keyboard,disable                                       Lock The Keyboard
rundll32 mouse,disable                                          Disable Mouse
rundll32 user32.dll,SwapMouseButton                             Swap Mouse Buttons - works Windows 8 - doesn't return the mouse to normal if run again!
rundll32 user32.dll,SetCursorPos                                Set Cursor Position To (0,0) - works Windows 8
rundll32 user,wnetconnectdialog                                 Show 'Map Network Drive' Window
rundll32 user,wnetdisconnectdialog                              Show 'Disconnect Network Disk' Window
rundll32 user,disableoemlayer                                   Display The BSOD (blue screen of death)Window
rundll32 diskcopy,DiskCopyRunDll                                Show Copy Disk Window
rundll32 rnaui.dll,RnaWizard                                    Run 'Internet Connection Wizard'
rundll32 shell32,SHFormatDrive                                  Run 'Format Disk (A)' Window
rundll32 shell32,SHExitWindowsEx -1                             Cold Restart Of Windows Explorer
rundll32 shell32,SHExitWindowsEx 1                              Shut Down Computer
rundll32 shell32,SHExitWindowsEx 0                              Logoff Current User
rundll32 rnaui.dll,RnaDial "MyConnect"                          Run 'Net Connection' Dialog
rundll32 msprint2.dll,RUNDLL_PrintTestPage                      Choose & Print Test Page Of Current Printer
rundll32 user,setcaretblinktime                                 Set New Cursor Rate Speed
rundll32 user, setdoubleclicktime                               Set New DblClick Speed (Rate)
rundll32 sysdm.cpl,InstallDevice_Rundll                         Hardware installation wizard
rundll32 user,MessageBeep                                       Default beep sound
rundll32 user32.dll,MessageBeep                                 Default beep sound (XP)
rundll32 shell32.dll,Control_RunDLL odbccp32.cpl                ODBC settings
Rundll32.exe powrprof.dll,SetSuspendState Sleep                 Put the computer in Sleep mode

29 Nov 2012 02:18

Joined: 10 Feb 2012 02:20
Posts: 5138
Post Re: Use RunDll32 utility [Topic]
Thanks, that's useful.

29 Nov 2012 02:27

Joined: 26 Oct 2011 22:38
Posts: 1007
Location: Egypt
Post Re: Use RunDll32 utility [Topic]
I tested few of them but they don't work :?
Even the Blue screen of death :cry: it could have been a very cool trick :twisted:

it keep saying "The specified module couldn't be found"

But at least the 2nd beep is working :lol:

29 Nov 2012 02:34

Joined: 10 Feb 2012 02:20
Posts: 5138
Post Re: Use RunDll32 utility [Topic]
I tried it just now too and it seems to be a bit fragmented and case is significant. Of the following tries only the last one worked.

So changing user to user32.dll and adding uppercase to word boundaries might work.

d:\>rundll32 user,setcursorpos

d:\>rundll32 user,SetCursorPos

d:\>rundll32 user32.dll,setcursorpos

d:\>rundll32 user32.dll,SetCursorPos
Only this one worked

29 Nov 2012 04:43

Joined: 26 Oct 2011 22:38
Posts: 1007
Location: Egypt
Post Re: Use RunDll32 utility [Topic]
The Writer posted
Note that they are not guaranteed to work across all Windows versions.

and there was on of these commands that work for window 9x so i think this is old post, i couldn't find any date but as you said converting user to User32.dll work in few of these commands including the one in the link

29 Nov 2012 05:05

Joined: 28 Jun 2010 03:46
Posts: 212
Post Re: Use RunDll32 utility [Topic]
Here is one cool trick I use to change wallpaper from batch:

rundll32.exe user32.dll,UpdatePerUserSystemParameters

And how I use it in a batch file:

@echo off
echo Waiting 10 seconds before changing wallpaper...
ping -n 10 -w 1000>nul 2>nul

echo Windows Registry Editor Version 5.00>temporary.reg
echo [HKEY_CURRENT_USER\Control Panel\Desktop]>>temporary.reg
echo "Wallpaper"="C:\\WINDOWS\\Web\\Wallpaper\\Bliss.bmp">>temporary.reg

regedit /s temporary.reg && del temporary.reg

rundll32.exe user32.dll,UpdatePerUserSystemParameters

if exist temporary.reg del temporary.reg

The code above changes the wallpapper from the current one to the Bliss.bmp.


29 Nov 2012 09:52

Joined: 26 Oct 2011 22:38
Posts: 1007
Location: Egypt
Post Re: Use RunDll32 utility [Topic]
Thanks, :) that is a nice trick to do in some. and could be to change wallpaper every moment randomly using a batch foxidrive made once to randomly start files.

29 Nov 2012 13:52
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

Who is online

Users browsing this forum: Bing [Bot], ShadowThief, Yahoo [Bot] and 8 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin for Free Forums/DivisionCore.