Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Syntax of rundll32.exe

Posted on 1997-05-05
1
Medium Priority
?
454 Views
Last Modified: 2013-12-04
I want to use a specific function out of a DLL.
As far as I know I can use:
rundll32.exe <DLLNAME>,<FUNCTION>

But how do I pass parameters to the function?
Show it for the example: CreateDirectoryA

Thanks in advance...
0
Comment
Question by:tier
1 Comment
 
LVL 15

Accepted Solution

by:
NickRepin earned 100 total points
ID: 1397118
You cannot use rundll32 to call Win32 API (and CreateDirectoryA).See more information in http://www.microsoft.com/kb/articles/q164/7/87.htm .But you can write your own simple program:#include <windows.h>void main(int argc,char* argv[]){   CreateDirectory(argv[1],NULL);}Compile it as console app by using any 32bit compiler.   CreateDirectory
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question