Learn how to Make Money Online | Free Tech Magazines
Go4Expert
Go4Expert RSS Feed

Go Back   Programming and SEO Forum >  Go4Expert > Articles / Source Code > Engineering concepts

Discuss / Comment Copy HTML to Clipboard  Copy BBCode to Clipboard  Add to del.icio.us  Add to Google  Digg it  Add to Yahoo !  Add to Windows Live  Add to Facebook  Add to StumbleUpon 
 
Bookmarks Article Tools Search this Article Display Modes

Using Rundll32.exe in Windows XP

By pradeep pradeep is offline

On 18th June, 2005
Post Using Rundll32.exe in Windows XP

ADVERTISEMENT
Show Printable Version Email this Page Subscription Add to Favorites Copy Using Rundll32.exe in Windows XP link

Author

pradeep ( Team Leader )

Yet to provide details about himself


All articles By pradeep

Recent Articles

Similar Articles

Although they are not directly executable as programs, the many DLL files present in Windows contain libraries of functions that are used throughout the operating system and in application software. Generally, these functions are used internally by programs and are not directly visible to the computer user. However, Windows XP contains a filerundll32.exe that allows command line access to certain functions that are explicitly written to be available to this executable file.In this article we discuss how to use some of these.

Syntax for using Rundll32.exe


The syntax for using Rundll32.exe must be followed precisely and is as follows:
RUNDLL32.EXE ,

The DLL name may not contain any spaces, commas or quotation marks.If the DLL name does contain spaces, use the short (8.3) version of the file name. Note that there must be a comma between the DLL name and the entry point. Also, the name of the entry point function is case-sensitive,and there can't be any spaces between the DLL name, the comma, and the entry point function name. If the DLL file is not in a folder contained in the system path environment, then the full path must be used for the DLL name. See the Microsoft Knowledge Base for more details.

There are a number of commands employing Rundll32.exe that can be entered into Start-Run, a command window, or used in scripts. A common use is to open various Control Panel applets. For example, to open the Control Panel applet for configuring the display properties enter.
RUNDLL32.EXE SHELL32.DLL,Control_RunDLL desk.cpl,,0

Different tabs for the Desktop applet can be opened by changing the number at the end that is part of the argument. All of the Control Panel applets and their tabs can be opened this way by using the relevant CPL file and the appropriate tab number as arguments. The operating system also uses this method to display Control Panel. In fact, Control Panel applications are the most commonly mentioned examples in discussions of using Rundll32.exe. Examples of some different applications are discussed below.

Applications accessible by using Rundll32.exe

Rundll32.exe is used internally by Windows for a variety of DLL functions not exposed to the PC user but there are a number of DLLs that contain entry points available for external use. The most useful of these DLLs is shell32.dll. As illustrated above, this is the DLL that can be used to open various Control Panel applets.

Here are some lists of available commands (Note: some of the listed commands are for Win98 and do not work in Win XP.)

* Dx21 Reference Guide (Had 176 instances when I last looked)
* Vbexplorer.com
* Text version of above
* Media Chance Rundll FAQ
* Rob van der Woude's site

The last site listed above has a discussion of the many options for command line printer control using Rundll32.exe and printui.dll. The discussion is for Windows 2000 Professional but seems to work the same on my Windows XP Professional system. (I do not know if it applies to XP Home.) If you open a command window and enter the line below an extensive list of options will be shown. There are a variety of possible uses.

RUNDLL32 PRINTUI.DLL,PrintUIEntry /?

Another example is a command that allows you to switch the mouse-buttons for left-hand use. Unfortunately, once the switch is made it seems that it can only be undone by the old-fashioned method of going to Control Panel. In other words, it doesn't act as a toggle but seems to be one way. The command is
RUNDLL32.EXE USER32.DLL,SwapMouseButton

If you need to switch the button settings back and forth, the command given below will take you to the mouse settings dialog
RunDLL32.EXE shell32.dll,Control_RunDLL main.cpl @0,0

A further example is a command that brings up the "Open with.." dialog box for a particular file myfile.ext given as an argument.The full path for myfile.ext must be used unless its folder is in the path environment.
RUNDLL32.EXE SHELL32.DLL,OpenAs_RunDLL

An Internet Explorer application that will clear out the branding that some ISP's like AOL stick into the IE title bar is
RUNDLL32.EXE IEdkcs32.dll,Clear

The foregoing examples are a only a few of those listed in the references given above. Depending on their pattern of usage and level of computer expertise, PC users may find a variety of others that they can use.

Making shortcuts using Rundll32.exe


Many of the commands using Rundll32.exe are more likely to be found in scripts rather than in shortcuts for everyday use. However, creating a shortcut using one of the commands is very easy. Right-click in an empty spot in the folder where you want the shortcut to be located and choose New-Shortcut from the context menu. Enter the desired command in the line "Type the location of the item." Click "Next," choose a name, and click "Finish."

A shortcut that I personally like opens the dialog box for editing the Favorites in Internet Explorer. The command is

RUNDLL32.EXE shdocvw.dll,DoOrganizeFavDlg

In Windows 98/Me two of the most commonly used shortcuts using Rundll32.exe allowed for a quick computer shutdown or for an easy reboot. These do not work in Windows XP. A different method is available using the file shutdown.exe.
Error messages involving Rundll32.Exe

Since Rundll32.exe is involved with many processes in Windows, it isn't uncommon that error messages crop up that include references to it. That does not mean that Rundll32.exe is itself the actual culprit. More often than not the problem lies elsewhere, such as the DLL file that is being called. Persistent error messages may also indicate infection by a virus or a spyware or Trojan problem. Regular scans with an anti-virus and spyware removal software with updated definitions should be made. There are too many possible reasons for error messages to be discussed here but H. Leboeuf has a Web page with a large catalog of articles from the Microsoft Knowledge Base that are about Rundll32.exe error messages.

Difference between Rundll32.exe and Rundll.exe

Note that Windows 9X/Me still had some 16-bit operating system files so a 16-bit relative of rundll32.exe called rundll.exe was also present in the older versions of Windows. Windows XP is a pure 32-bit system and rundll.exe is not present.
Old 01-25-2007, 03:40 AM   #2
ReekenX
Go4Expert Member
 
ReekenX's Avatar
 
Join Date: Jan 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ReekenX is on a distinguished road

Re: Using Rundll32.exe in Windows XP


Can be run32.dll used for viruses?
__________________
http://www.webcore.lt - my personal web site, if you interested in web developing, please visit

Last edited by ReekenX; 01-21-2008 at 06:04 PM.
ReekenX is offline   Reply With Quote
Old 01-25-2007, 09:01 AM   #3
shabbir
Go4Expert Founder
 
shabbir's Avatar
 
Join Date: Jul 2004
Location: On Earth
Posts: 10,943
Thanks: 35
Thanked 167 Times in 139 Posts
Rep Power: 10
shabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud of
Send a message via Yahoo to shabbir

Re: Using Rundll32.exe in Windows XP


Quote:
Originally Posted by ReekenX
Can be run.dll used for viruses?
Its not run.dll but run32.dll. Dont just concentrate on putting your links in the post but just get the post also correct.
shabbir is offline   Reply With Quote
Old 07-18-2007, 04:45 PM   #4
vsarahman
Newbie Member
 
Join Date: Jul 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vsarahman is on a distinguished road
Cool

Re: Using Rundll32.exe in Windows XP


Hi!Pradeep.

when i starting the windows ctfmon.exe is automatically runnig,how can i stop that,and
it takes about 11 to 17 usage of my cpu.
pls Help me stop that from the start up.
tnx
vsarahman is offline   Reply With Quote
Old 07-19-2007, 11:55 AM   #5
pradeep
Team Leader
 
pradeep's Avatar
 
Join Date: Apr 2005
Location: Kolkata, India
Posts: 1,461
Thanks: 0
Thanked 19 Times in 16 Posts
Rep Power: 6
pradeep will become famous soon enough
Send a message via Yahoo to pradeep

Re: Using Rundll32.exe in Windows XP


It's a MS Office process, read more about it here http://www.liutilities.com/products/...ibrary/ctfmon/
__________________
Vote for the Most Entertaining Member of 2008

To err is human,to detect is divine!
pradeep is offline   Reply With Quote
Old 04-10-2008, 08:44 PM   #6
sanjujoshhi
Go4Expert Member
 
Join Date: Apr 2008
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sanjujoshhi is on a distinguished road

Re: Using Rundll32.exe in Windows XP


hi!!!
when my window loads it shows virusremoval.vbs missing type massage.
can anyone help me?????????
sanjujoshhi is offline   Reply With Quote
Old 04-11-2008, 11:12 AM   #7
pradeep
Team Leader
 
pradeep's Avatar
 
Join Date: Apr 2005
Location: Kolkata, India
Posts: 1,461
Thanks: 0
Thanked 19 Times in 16 Posts
Rep Power: 6
pradeep will become famous soon enough
Send a message via Yahoo to pradeep

Re: Using Rundll32.exe in Windows XP


Probably You run a virus scan program and then deleted it, but since it is still trying to run at boot up it means that is still part of your Start Up procedure.
__________________
Vote for the Most Entertaining Member of 2008

To err is human,to detect is divine!
pradeep is offline   Reply With Quote
Old 04-14-2008, 01:10 PM   #8
sanjujoshhi
Go4Expert Member
 
Join Date: Apr 2008
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sanjujoshhi is on a distinguished road
Smile

Re: Using Rundll32.exe in Windows XP


thanks but.................
hey is there any way to get rid of it??????????
sanjujoshhi is offline   Reply With Quote
Old 04-14-2008, 08:04 PM   #9
pradeep
Team Leader
 
pradeep's Avatar
 
Join Date: Apr 2005
Location: Kolkata, India
Posts: 1,461
Thanks: 0
Thanked 19 Times in 16 Posts
Rep Power: 6
pradeep will become famous soon enough
Send a message via Yahoo to pradeep

Re: Using Rundll32.exe in Windows XP


Goto Start->Run type msconfig and press enter, goto Startup tab find the program and remove it.
__________________
Vote for the Most Entertaining Member of 2008

To err is human,to detect is divine!
pradeep is offline   Reply With Quote
Discuss / Comment Copy HTML to Clipboard  Copy BBCode to Clipboard  Add to del.icio.us  Add to Google  Digg it  Add to Yahoo !  Add to Windows Live  Add to Facebook  Add to StumbleUpon 


Currently Active Users Reading This Article: 3 (0 members and 3 guests)
 
Article Tools Search this Article
Search this Article:

Advanced Search
Display Modes
Bookmarks

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads / Articles
Thread Thread Starter Forum Replies Last Post
Basic BIOS password crack vishal sharma Ethical hacking 92 11-09-2009 10:15 PM
10 reasons that make LINUX a better OS.. vishal sharma Unix / Linux 12 05-16-2007 01:52 AM
Startup Problems -sys hack vishal sharma Ethical hacking 4 05-14-2007 01:54 AM
Windows Environment Variables in VB shabbir Visual Basic [VB] 1 09-02-2005 05:28 AM
Home PCs to get key Windows fix shabbir Information Technology 0 08-18-2004 10:59 AM

 

All times are GMT +5.5. The time now is 04:52 AM.