Solved

Syntax of rundll32.exe

Posted on 1997-05-05
1
438 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 50 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now