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.

89 questions
29
votes
1 answer

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\tmp",NULL,NULL,SW_SHOWNORMAL This results in an…
mike
  • 1,219
  • 2
  • 11
  • 15
19
votes
1 answer

rundll32.exe equivalent for 64-bit DLLs

Is there an equivalent of rundll32.exe for calling 64-bit DLLs?
edotan
  • 191
  • 1
  • 1
  • 3
12
votes
4 answers

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) { ProcessStartInfo info = new ProcessStartInfo(); …
Nico
  • 1,806
  • 2
  • 13
  • 18
9
votes
1 answer

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 to be the name of a DLL (mshtml), but how does…
david
  • 2,017
  • 17
  • 26
8
votes
2 answers

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
  • 521
  • 2
  • 13
6
votes
5 answers

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 type argument in a command running from user32.dll? I'm…
TJR
  • 3,209
  • 7
  • 35
  • 40
4
votes
1 answer

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 call MyEntryPoint()?
CnativeFreak
  • 652
  • 9
  • 27
4
votes
1 answer

How to capture result from a rundll32 invocation?

I've been bitten by this old bug/missing feature in Java: http://bugs.sun.com/view_bug.do;jsessionid=b2ac8ea11f05c16d948e24d36fb5?bug_id=4673406 The thing is that the "Properties" button in Java's standard print dialog is seemingly always disabled…
perp
  • 3,513
  • 4
  • 27
  • 29
4
votes
3 answers

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 RUNDLL32.EXE SHELL32.DLL,OpenAs_RunDLL…
Aubin
  • 13,790
  • 8
  • 55
  • 78
4
votes
1 answer

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 user32.dll but I don't know what they are. Is…
Jan Tacci
  • 2,931
  • 16
  • 56
  • 82
3
votes
1 answer

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(STARTUPINFO); si.dwFlags = STARTF_USESHOWWINDOW; si.wShowWindow =…
Vicky
  • 12,315
  • 4
  • 45
  • 51
3
votes
2 answers

"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 with this command (passing in my ini…
user2531854
  • 726
  • 2
  • 10
  • 28
3
votes
1 answer

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 new .docx based on the template. Just as the…
Nanocom
  • 3,596
  • 4
  • 29
  • 44
3
votes
3 answers

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 the path of that data source has to be set…
erdal.karaca
  • 683
  • 1
  • 4
  • 20
3
votes
1 answer

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 happens? No errors or nothing. I expect it to launch…
user1202434
  • 2,143
  • 4
  • 30
  • 52
1
2 3 4 5 6