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).

Useful links: Rundll32 on technet. Rundll32 on SS64 help pages.

94 questions
3
votes
1 answer

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.microsoft.com/en-us/library/c91k1xcf.aspx): In…
Darxis
  • 1,482
  • 1
  • 17
  • 37
2
votes
0 answers

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 budget-based reasons, I've been tasked with updating…
wonk
  • 92
  • 1
  • 10
2
votes
0 answers

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.exe User32.dll, BlockInput 0 But it looks like…
2
votes
0 answers

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 tried. rundll32.exe "C:\Program Files\Windows Photo…
greg hoglund
  • 21
  • 1
  • 2
2
votes
0 answers

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 : Rundll32.exe User32.dll,MessageBoxA…
Shahriar
  • 21
  • 1
  • 4
2
votes
0 answers

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( ) but it gives me errors.
djxm2m
  • 61
  • 1
  • 8
2
votes
1 answer

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 PS(P)" /c\\%computerNameIP% /h "x86" /f…
2
votes
1 answer

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
  • 21
  • 1
  • 2
2
votes
2 answers

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 how to find out if there was an error or…
Exa
  • 4,020
  • 7
  • 43
  • 60
2
votes
1 answer

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.exe URLMon.dll,URLDownloadToFIle…
xyz
  • 870
  • 2
  • 8
  • 16
2
votes
3 answers

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\CurrentControlSet\Control\Session…
Q Boiler
  • 1,187
  • 9
  • 20
2
votes
1 answer

SetCursorPos function called from Rundll32?

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'm passing the proper values to its…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
2
votes
1 answer

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 entry(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine,…
Transcendental
  • 983
  • 2
  • 11
  • 27
2
votes
2 answers

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 Argument: $(TargetPath) , ENTRY_POINT where…
2
votes
1 answer

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}\ghostscript\ghostpdf.inf"" /r ""TitusVirtualPrinter:"" /m…
Fabien Papet
  • 2,244
  • 2
  • 25
  • 52