rundll32

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 = SW_SHOW; bResult = CreateProcess(NULL, "rundll32.exe shell32.d...

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

I do not have the ability to modify environement 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 Manager\Environment Key: BPATH which is appended to the end of my System's pathEnv. but when I make ...

How to use Rundll32 to execute DLL Function?

Using the following link as a reference: http://msdn.microsoft.com/en-us/library/bb762153%28v=VS.85%29.aspx 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 exception error. I don't know what t...

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 not. That's my code: QProcess::startDetached( QString( "rundll32.exe url.dll,FileProtocolHandler " ...