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

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() { InitializeComponent(); var proc =…
Perry
  • 2,250
  • 2
  • 19
  • 24
1
vote
1 answer

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: Windows 10 is not always refreshing wallpaper when…
R3verse
  • 71
  • 2
  • 8
1
vote
1 answer

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 other way to make it work rather than repeating…
Roxiun
  • 185
  • 2
  • 10
1
vote
2 answers

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 command prompt by using: rundll32…
Brandon
  • 4,486
  • 8
  • 33
  • 39
1
vote
1 answer

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 never worked with .dll files so everything that I…
NicuVlad
  • 2,491
  • 3
  • 28
  • 47
1
vote
1 answer

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. #define RUNDLL32(func) extern "C"…
flacs
  • 3,913
  • 4
  • 19
  • 20
1
vote
2 answers

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 in which I would want a dll to be run as…
tryingToLearn
  • 10,691
  • 12
  • 80
  • 114
1
vote
0 answers

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 still requires a particular method header for a…
MathuSum Mut
  • 2,765
  • 3
  • 27
  • 59
1
vote
0 answers

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,PrintUIEntry /ia /c\\machine /m "Brother DCP-128C" /h…
user1624807
  • 271
  • 1
  • 5
  • 20
1
vote
0 answers

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=msil In my 'Inno Setup' script in the Run section…
SPlatten
  • 5,334
  • 11
  • 57
  • 128
1
vote
1 answer

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:\SmartCard_Treiber" & RUNDLL32.EXE…
Kermit Christmas
  • 113
  • 2
  • 15
1
vote
2 answers

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 Success) | (echo Fail) This command will evaluate as…
ExceptionLimeCat
  • 6,191
  • 6
  • 44
  • 77
1
vote
1 answer

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.println("Current dir using System:" +currentDir); …
CleanX
  • 1,158
  • 3
  • 17
  • 25
1
vote
2 answers

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 examples, which I can not get working to save my…
user2224583
  • 69
  • 1
  • 16
1
vote
1 answer

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 along the lines of .. sc.exe create service…
user1621026
  • 55
  • 2
  • 11