Solved

Syntax of rundll32.exe

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

810 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