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
0
votes
1 answer

Creating a shortcut passing arguments to shell32.dll using Powershell

So I am trying to make a 'create shortcut' script to generate a link on my users desktop to take them directly to the "Add Printer Wizard" in Windows 10. Programatically speaking, I am pretty sure it is not possible but it is a directive from…
0
votes
1 answer

QProcess instantly finishes without output when using rundll32 Windows

I am trying to launch a patching dll for The Lord of The Rings Online with QProcess and get the output, but it only works on Linux (where I am doing it through wine with QProcess). I have tried a lot without success, and have come to the conclusion…
user11729741
0
votes
1 answer

How Do I Set The "Print directly to the printer" attribute on an IPP Printer in Windows 7 x64 with PrintUIEntry?

Summary I'm trying to automate a script for Windows 7 x64 to set the "Print directly to the printer" attribute on an IPP Printer I've created (see screenshot below) I've tried rundll32 printui.dll,PrintUIEntry /Xs /n "PrinterName" attributes…
dapperdan1985
  • 3,132
  • 2
  • 15
  • 26
0
votes
0 answers

Uninstalling a program silently - Is there a way to execute rundll32.exe silently via PowerShell?

I'm trying to uninstall a Mindspark program using PowerShell. I was able to see the uninstall string for the program is: rundll32 "C:\Program Files (x86)\DailyHomeGuide_bg\bar\1.bin\bgBar.dll",O mindsparktoolbarkey="DailyHomeGuide_bg"…
0
votes
0 answers

What syntax do I use on status changes in printui.exe for printer settings via command line

I need help, can someone help me set up a properly written settings-change request via command line or batch? I have looked over the internet for command line help with writing a line to unpause a paused printer via batch script . The resource at…
Ryan Harger
  • 47
  • 1
  • 9
0
votes
0 answers

Powershell restoring printers from a CSV file using Invoke-Command

Hey all was testing an idea with a script to help some of my student assistants with our Windows 10 roll out - so I'm making a restore script to compliment a backup one I made a while ago. It saves .csv's files on a public file share. I was…
0
votes
1 answer

Executing rundll32.exe with CreateProcess

I've created a DLL and would like to execute one of the functions using the rundll32.exe command on windows. Using rundll32.exe, it runs correctly from the command line; however, I'd like to call it (rundll32.exe) from a separate program. I cannot…
user5786682
  • 11
  • 2
  • 7
0
votes
2 answers

File cannot open when it has double spaces in file name

I am trying to open image using java program which file name has more than once spaces. direct windows command is working fine, but when I execute via java program it is not opening. direct command : rundll32.exe shell32.dll ShellExec_RunDLL…
Dilanka M
  • 372
  • 1
  • 5
  • 17
0
votes
1 answer

C# snippet starting up directly environment variables window is not working on Windows 10

I've been using the following piece of code to directly open the Environment variables screen with a single button click: private void OpenEnvVariables() { Process p = new Process(); p.StartInfo.WorkingDirectory = @"C:\Windows\System32"; …
0
votes
0 answers

Replicate Disable Playback.Device Behaviour Like "Sounds" from Rundll32.exe

I am trying to replicate the disable playback device behaviour from my c# solution. So far I have managed to set the DeviceState registry key of the device I want to disable but it does not route the output of the currently playing applications to…
Ilias.P
  • 179
  • 7
0
votes
0 answers

How to call file and run in Runtime.getRuntime().exec("rundll32 url.dll, FileProtocolHandler)

This is my coding and it will create Decrypted image.jpg in desktop directory File desktopDir = new File(System.getProperty("user.home"), "Desktop"); System.out.println(desktopDir.getPath() + " " + desktopDir.exists()); String pathToDesktop =…
John U2
  • 3
  • 4
0
votes
0 answers

Failing to load a dll using rundll32 from folder in PATH

I have a native dll (bar.dll) that does almost nothing: It exports one function foo that opens calc.exe. And it does the same on DLL_PROCESS_ATTACH. I've read here that once everything else fails The directories that are listed in the PATH…
Rob B
  • 1
  • 2
0
votes
0 answers

Could anyone help to how to deal with "SwitchToThisWindow" on the process which from rundll32.exe?

Could anyone help to how to deal with "SwitchToThisWindow" on the process which from rundll32.exe? thanks. As below image: “Internet Properties” is under “Rundll32”, I have PID 3368 for rundll32.exe and use below code to put the process on top. But…
Jason Ni
  • 159
  • 1
  • 1
  • 8
0
votes
1 answer

Need An alternative to RUNDLL32 for calling DLLs

I want to call a Windows DLL's exports by command line or by means of a batch file. The DLL is winscard.dll, which is located at \windows\system32. But I don't want to use RUNDLL or RUNDLL32, because the functions I want to call, don't have the…
Aliasghar Yaghoobzadeh
  • 1,881
  • 2
  • 12
  • 10
0
votes
0 answers

Writing a DLL For Use With rundll32.exe

I have the following codes: mydll.h: #include __declspec(dllexport) void CALLBACK Entry(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow); mydll.c: #include "mydll.h" void CALLBACK Entry(HWND hwnd, HINSTANCE hinst, LPSTR…
Edwin Lee
  • 3,540
  • 6
  • 29
  • 36