void CALLBACK funcName( HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow );
rundll32.exe
. c:\> rundll32 nameOf.DLL,entryPoint c:\> rundll32 nameOf.DLL,entryPoint optionalArgument1 c:\> rundll32 nameOf.DLL,entryPoint optionalArgument1 optionalArgument2 c:\> rundll32 nameOf.DLL,entryPoint optionalArgument1 optionalArgument2 …
nameOf.DLL
with the WinAPI function LoadLibrary()
and determines the address of the function entryPoint
with GetProcAddress()
. rundll32.exe
is used to start .cpl
files (Control Panel applets) with the following convention: rundll32.exe shell32.dll,Control_RunDLL FooBarBaz.cpl,arguments
c:\> rundll32.exe shell32.dll,Control_RunDLL main.cpl @0
c:\> rundll32.exe printui.dll,PrintUIEntry /o /n "print-2-image"
/o
or /n
), just run c:\> rundll32.exe printui.dll,PrintUIEntry
printui.exe
. C:\> rundll32.exe javascript:"\..\mshtml,RunHTMLApplication ";alert('Hello-World');
rundll32 C:\Windows\System32\mshtml.dll,PrintHTML "Microsoft Print to PDF" $pwd\languages.html
SHHelpShortcuts_RunDLL
in shell32.dll
.