Solved

Syntax of rundll32.exe

Posted on 1997-05-05
1
452 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

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 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.…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

617 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