rundll32

rundll32 url.dll,FileProtocolHandler

£可爱£侵袭症+ 提交于 2019-11-30 16:07:20
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 normal behavior in the windows explorer : when you double-click on a .dotx template file, it creates a new .docx file based on it. If you want to open the real .dotx file, you have to right-click on it and select "open" instead of "new". Question is: how to do the same with rundll32? Is there an option in the command to force the opening of the

How does RunDll32 work?

混江龙づ霸主 提交于 2019-11-30 04:37:26
问题 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? 回答1: RunDll32 is pretty much a thin wrapper that calls LoadLibrary to load the given DLL, calls GetProcAddress to get the function address of the desired function, and then calls the function. It can't call just any exported function in the DLL, though—it assumes that the function has a very specific function signature

rundll32 url.dll,FileProtocolHandler

筅森魡賤 提交于 2019-11-29 23:12:49
问题 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 normal behavior in the windows explorer : when you double-click on a .dotx template file, it creates a new .docx file based on it. If you want to open the real .dotx file, you have to right-click on it and select "open" instead of "new". Question is:

rundll32.exe equivalent for 64-bit DLLs

北城余情 提交于 2019-11-27 17:24:55
问题 Is there an equivalent of rundll32.exe for calling 64-bit DLLs? 回答1: On 64-bit versions of Windows, two rundll32.exe programs exist: 64-bit: C:\Windows\System32\rundll32.exe 32-bit: C:\Windows\SysWOW64\rundll32.exe If you are trying to do this from a 32-bit program, you might need to use C:\Windows\Sysnative or temporarily turn off WoW64 file system redirection. See the Microsoft documentation. 来源: https://stackoverflow.com/questions/4703635/rundll32-exe-equivalent-for-64-bit-dlls

Launch associated program or show “Open with” dialog from another program

元气小坏坏 提交于 2019-11-27 05:13:06
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 D:\doc\toto.txt Firstly, note that OpenAs_RunDLL is an undocumented entry point so the only reason to expect it to work is that it appears in the HKEY_CLASSES_ROOT registry as an implementation for the Open With shell verb (in at least some versions of Windows). This only means it can be expected to work when called by the appropriate shell functions. It does

How to use Rundll32 to execute DLL Function?

99封情书 提交于 2019-11-26 14:32:32
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 exception error. I don't know what this means: HINSTANCE ShellExecute( __in_opt HWND hwnd, __in_opt LPCTSTR lpOperation, __in LPCTSTR lpFile, __in_opt LPCTSTR lpParameters, __in_opt LPCTSTR lpDirectory, __in INT nShowCmd ); But in the description, a handle (HWND), and a pointer to a null-terminated string (LPCTSTR), are mentioned, but it is very confusing.

Launch associated program or show “Open with” dialog from another program

泄露秘密 提交于 2019-11-26 11:28:02
问题 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 D:\\doc\\toto.txt 回答1: Firstly, note that OpenAs_RunDLL is an undocumented entry point so the only reason to expect it to work is that it appears in the HKEY_CLASSES_ROOT registry as an implementation for the Open With shell verb (in at least some versions of

How to use Rundll32 to execute DLL Function?

旧时模样 提交于 2019-11-26 08:51:42
问题 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 exception error. I don\'t know what this means: HINSTANCE ShellExecute( __in_opt HWND hwnd, __in_opt LPCTSTR lpOperation, __in LPCTSTR lpFile, __in_opt LPCTSTR lpParameters, __in_opt LPCTSTR lpDirectory, __in INT nShowCmd ); But in the description