Questions tagged [rundll32]

runDLL32.exe is a Win32 - utility from Microsoft Windows that loads and runs 32-bit specific functions from dynamic-link libraries (DLLs).

rundll32
Filter by
Sorted by
Tagged with
32 votes
1 answer
80k views

How to use Rundll32 to execute DLL Function?

Using the ShellExecute documentation as a reference: I run the following from the command line: C:\>RUNDLL32.EXE SHELL32.DLL,ShellExecute handle,"open","C:\Documents and Settings\admin\Desktop\...
mike's user avatar
  • 1,339
23 votes
1 answer
25k views

rundll32.exe equivalent for 64-bit DLLs

Is there an equivalent of rundll32.exe for calling 64-bit DLLs?
edotan's user avatar
  • 231
13 votes
4 answers
23k views

Need to run a c# dll from the command line

I have a c# dll defined like this: namespace SMSNotificationDll { public class smsSender { public void SendMessage(String number, String message) { ...
Nico's user avatar
  • 1,944
11 votes
2 answers
4k views

How does RunDll32 work?

How exactly does RunDll32 call a function, without knowing the number/types of arguments that the function can take? Does it have a built-in compiler or something of the sort?
Downvoter's user avatar
  • 551
9 votes
6 answers
16k views

How do I use Rundll32 to swapmousebutton?

I'm repeating a question from another forum, as I'd like the same answer. From MSDN's SwapMouseButton Function. How do I pass boolean data from command prompt through rundll32.exe to a boolean ...
TJR's user avatar
  • 3,705
9 votes
1 answer
12k views

Rundll32.exe javascript

I've just (August 2014) seen a report of a program that uses the command line rundll32.exe javascript:"\..\mshtml,RunHTMLApplication" How does that work? I thought the first parameter was supposed ...
david's user avatar
  • 2,555
5 votes
3 answers
3k views

Launch associated program or show "Open with" dialog from another program

Under Window Seven, the following command displays a dialog box then terminates without any other action, why? The expected effect is launching the associated program Notepad++ or at least Notepad ...
Aubin's user avatar
  • 14.7k
5 votes
1 answer
5k views

How Do I Get The Names Of All The Entry Points In user32.dll?

I am experimenting around with rundll32.exe and user32.dll. For example, to lock my workstation I type: rundll32.exe user32.dll, LockWorkStation I would like to try other commands (entry points) in ...
Jan Tacci's user avatar
  • 3,161
4 votes
1 answer
6k views

Use Rundll32.exe to execute function exported by DLL

I have a DLL which exports a function: __declspec(dllexport) void __stdcall MyEntryPoint(char* params) { MessageBoxA("MyEntryPoint",params,0,0); } How can I use rundll32.exe to load my DLL and ...
CnativeFreak's user avatar
4 votes
3 answers
20k views

Open Word document from command line with additional data source parameter

It is possible to open a word document from the command line using this: rundll32 url.dll,FileProtocolHandler path.to.word.document.doc Unfortunately, that document needs an external data source, so ...
erdal.karaca's user avatar
4 votes
1 answer
18k views

rundll32 url.dll,FileProtocolHandler

I'm using rundll32 url.dll,FileProtocolHandler my_file.dotx to open files under Windows. It works fine with .docx documents, but when I try it with .dotx documents (template documents), it creates a ...
Nanocom's user avatar
  • 3,726
4 votes
1 answer
4k views

How to capture result from a rundll32 invocation?

I've been bitten by this old bug/missing feature in Java: https://bugs.java.com/bugdatabase/view_bug;jsessionid=b2ac8ea11f05c16d948e24d36fb5?bug_id=4673406 The thing is that the "Properties" ...
perp's user avatar
  • 3,923
4 votes
1 answer
6k views

Using rundll32.exe to launch a click once deployment URL?

I am using the following command from the command prompt in windows: C:\Users\myusername>rundll32.exe dfshim.dll,LaunchApplication "http://ClickOnceDeplymentURL.application" NULL 0 but nothing ...
user1202434's user avatar
  • 2,263
3 votes
1 answer
6k views

SetCursorPos function called from Rundll32? [duplicate]

How I could properly call the SetCursorPos function from windows RunDll32 application? If I try this, it sends the cursor to bottom-right corner: RunDll32.exe user32.dll,SetCursorPos 100, 100 But I'...
ElektroStudios's user avatar
3 votes
2 answers
9k views

"RUNDLL32 PRINTUI.DLL,PrintUIEntry /Sr /n... Operation could not be completed (error 0x0000000c)

I stored my printer settings in a .dat file with this command: RUNDLL32 PRINTUI.DLL,PrintUIEntry /Ss /n "SATO CG408" /a "c:\INI\small-tag.dat I'm then trying to restore the printer setting in VB.net ...
user2531854's user avatar
3 votes
3 answers
2k views

using rundll32 user32.dll to indicate that a user's environment has changed

I do not have the ability to modify environment variables in windows 7. However I have been granted permission to modify the registry settings. So for example I can modify: HKEY_LOCAL_MACHINE\SYSTEM\...
Q Boiler's user avatar
  • 1,207
3 votes
1 answer
6k views

Visual Studio 2010 - Debug DLL - Debug Command using rundll32 doesn't work

I have a problem debugging a C++ DLL project in Visual Studio 2010. While debuging I want the DLL to be loaded by rundll32.exe automatically. To do so I follow these steps (like here http://msdn....
Darxis's user avatar
  • 1,502
3 votes
1 answer
3k views

Why does RunDLL32 process exit early on Windows 7?

On Windows XP and Vista, I can run this code: STARTUPINFO si; PROCESS_INFORMATION pi; BOOL bResult = FALSE; ZeroMemory(&pi, sizeof(pi)); ZeroMemory(&si, sizeof(si)); si.cb = sizeof(...
Vicky's user avatar
  • 13k
2 votes
1 answer
5k views

Running C++ DLL with rundll32 - Missing entry

So I'm trying to use rundll to test and run my C++ written DLL , and i've followed the guidelines here and on other sites and the entry point looks like this: __declspec(dllexport) void CALLBACK ...
Transcendental's user avatar
2 votes
1 answer
5k views

What does the sharp (#) means in rundll32.exe parameters

For example: rundll32.exe "test.dll",#1 I looked into rundll32.exe manual But I can not find the meaning of the sharp(#).
Bgsong's user avatar
  • 21
2 votes
1 answer
1k views

RunDLL32 URLDownloadToFile

I'm trying to perform a one-liner file download in Windows command line, without depending on external tools like WGET, or even writing PowerShell or VBScripts scripts. I tried to run c:\> RunDLL32....
xyz's user avatar
  • 900
2 votes
2 answers
4k views

Debugging a native dll using rundll32.exe , fail to load symbols

I'm writing a native dll that is due to run with rundll32.exe (that is obligated by our clients). I've using VS's debugging properties to define: Command: c:\windows\system32\rundll32.exe Command ...
friedrich kuhler's user avatar
2 votes
2 answers
2k views

Is there a way to get an errorlevel from FileProtocolHandler or url.dll?

In one of my programs I am using rundll32.exe url.dll,FileProtocolHandler c:\path\to\a.file to open files. I would like to handle errors in case this file could not be opened but I can't figure out ...
Exa's user avatar
  • 4,060
2 votes
1 answer
1k views

Add printer Windows 8 programmatically

I am working on a Virtual Printer and I'm stuck at printer installation. Installation is made by InnoSetup [run] Filename : rundll32.exe; Parameters: "printui.dll, PrintUIEntry /if /f ""{app}\...
Fabien Papet's user avatar
  • 2,309
2 votes
1 answer
380 views

GetForegroundWindow throws Win32Exception Access Denied

public partial class Form1 : Form { [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)] private static extern IntPtr GetForegroundWindow(); public Form1() { ...
Perry's user avatar
  • 2,221
2 votes
0 answers
611 views

RUNDLL32.EXE MSHTML.DLL,PrintHTML with Javascript

I've been working on making a new invoice for our order processing system - however the groundwork for this system is very old and it's made by an external company so I can't change it. For a few ...
wonk's user avatar
  • 92
2 votes
0 answers
394 views

BlockInput from DLL in Batch file

I am trying to create a simple batch script to run in windows that wait for 20 minutes and then block the inputs by a minute. TIMEOUT 1200 rundll32.exe User32.dll, BlockInput 1 TIMEOUT 60 rundll32....
newbie39827's user avatar
2 votes
0 answers
4k views

how to pass 4 parameters to function in dll using rundll32.exe

Good morning. Sorry to my bad English. Now I have encountered one problem. I have succeeded in executing a function with one parameter, but in case of several parameters, I failed. here is what I ...
greg hoglund's user avatar
2 votes
0 answers
3k views

Run MessageBoxA from Rundll32.exe

I'm trying to run a MessageBoxA from User32.dll with Rundll32.exe. As I see in Microsoft references Rundll.exe is for 16-bit applications while Rundll32.exe is for 32-bit ones. So I write this command ...
Shahriar's user avatar
2 votes
0 answers
828 views

How can I register an OCX file in Python

How can I register a OCX file (call rundll32) in Python? I tried from ctypes import windll dll = windll[r'C:\Path\To\Some.DLL'] result = dll.DllRegisterServer( ) result = dll.DllUnregisterServer( ) ...
djxm2m's user avatar
  • 61
2 votes
1 answer
388 views

Remotely adding printer with batch file ; 0x32 This operation is not supported

I am trying to add a network printer via batch file, provided I feed the data(Printer IP, Printer Name, Computer IP) into the entries. rundll32 printui.dll,PrintUIEntry /if /b "KONICA MINOLTA C451 ...
Matt Pielichowski's user avatar
1 vote
2 answers
3k views

What is the actual use of rundll32.exe?

I was searching why rundll32.exe process is running on my system, when I found out the information that it acts as a container to run dll as application / exe. I cannot comprehend a reason / use case ...
tryingToLearn's user avatar
1 vote
1 answer
5k views

Documentation for writting your own dll for Rundll32.exe? [duplicate]

Possible Duplicate: How to use Rundll32 to execute DLL Function? Where can I find documentation (tutorials, books, etc.) to write my own dll's that can be run with rundll32.exe?
user avatar
1 vote
1 answer
4k views

Launch a pdf file from java

I am trying to open a pdf file from the following code. try { String currentDir = System.getProperty("user.dir"); currentDir = currentDir+"/Report.pdf"; System.out....
CleanX's user avatar
  • 1,168
1 vote
1 answer
359 views

How to implement rundll2-callable function?

I'm trying to write an exe that also exports functions which can be called with rundll32. Is this possible and if so, why isn't it working like this? I closely followed Microsoft's advice on this. #...
flacs's user avatar
  • 3,953
1 vote
1 answer
7k views

How to fix RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters 1, True not updating every time

I have had a look at this StackOverflow article and the same thing applies to me. Why is it that RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters 1, True does not work everytime? Is there some ...
Roxiun's user avatar
  • 185
1 vote
1 answer
280 views

CMD Syntax for local command

I would like to run a script, copy my folder and start rundll32 in my copied folder. mkdir "c:\SmartCard_Treiber" xcopy "%~DP0SmartCard_Treiber\*" "c:\SmartCard_Treiber" /i /s cmd /c cd "c:\...
Kermit Christmas's user avatar
1 vote
2 answers
4k views

PrintUI.dll Error Handling

It seems like the PrintUI.dll has a different error handling system than the typical command. If I try to run a conditional command like: (rundll32 printui.dll,PrintUIEntry /y /n "foo") & (echo ...
ExceptionLimeCat's user avatar
1 vote
2 answers
2k views

Using "rundll32.exe" to access SpeechUX.dll

Good Day, I have searched the Internet tirelessly trying to find an example of how to start Windows Speech Training from with in my VB.Net Speech Recognition Application. I have found a couple ...
user2224583's user avatar
1 vote
1 answer
2k views

Running a dll using rundll32.exe as a windows service

I was able to run a dll using rundll32.exe . Now I want to run it as a windows service but it doesn't seem to start and gets timeout. I am not sure how I could pass the parameters. Trying something ...
user1621026's user avatar
1 vote
1 answer
1k views

building a 64bit dll using mingw to be used with rundll

im currently trying to update my project to 64bit support. The project used to build a 32bit dll using i686-w64-mingw32 toolchain that could be used with rundll to start it. now, im trying to use the ...
mschmoock's user avatar
  • 20.3k
1 vote
1 answer
4k views

Call .dll functions using Java

I need to write an application for a client that calls a method from a ".dll" file. The ".dll" file was previously executed manually from an ".exe" GUI but now they want to automate the process. I ...
NicuVlad's user avatar
  • 2,511
1 vote
2 answers
10k views

What does "rundll32 dsquery,OpenQueryWindow" return?

So I'm working on a project where I would like to be able to have the user browse the Active Directory to find a machine or workstation. I already know that you can envoke this directory search in the ...
Brandon's user avatar
  • 4,493
1 vote
0 answers
80 views

Programatically launch Update Driver Wizard for specific device

How do you programmatically open the "Update driver" wizard for a specific Device? I am trying to replicate the Device Manager functionality from a WinForms C# app. So far I was able to ...
totalZero's user avatar
  • 323
1 vote
1 answer
4k views

Powershell change wallpaper on windows 10 for current logged on user

I was given a challenge to solve for making a little fun in the office. So I've tried to setup a VM lab with a windows server 2012 R2 & client Windows 10 to test this on. The challenge I am facing:...
R3verse's user avatar
  • 79
1 vote
0 answers
350 views

What was the idea behind RunDLL?

Why was RunDLL and later RunDLL32 conceived? What is the purpose of their existence? So as to bypass the task manager? https://support.microsoft.com/en-us/kb/164787 The article states that RunDLL ...
MathuSum Mut's user avatar
  • 2,795
1 vote
0 answers
1k views

Printui.dll, PrintUIEntry for installing a driver on a remote machine

In the help of printui.dll,PrintUIEntry /?, we have the following examples for remotely installing printer driver with the help of /c switch. Add printer driver using inf: rundll32 printui.dll,...
user1624807's user avatar
1 vote
0 answers
222 views

Inno Setup uninstalling application installed without Visual Studio 2013

In my registry the UninstallString for the application has the value: rundll32.exe dfshim.dll,ShArpMaintain 3sunptk.application, Culture=en-GB, PublicKeyToken=077ce3637efc8b1c, processorArchitecture=...
SPlatten's user avatar
  • 5,476
1 vote
1 answer
3k views

Running a dll using rundll32.exe.. no output or error seen

I am running a dll using a rundll32.exe but I dont see the output as expected nor my log statements nor do I see any error of any sort. How do I debug this ? Thanks, KG
user1621026's user avatar
1 vote
0 answers
759 views

Running a full windows app in a dll via rundll32

Does anyone have an example of building a complete WIN32 Windows app as a dll? I'd like to export a function, call it via rundll32, and have a complete Windows app with decorations, a menu, ...
petiepooo's user avatar
  • 226