Solved

passing arguments to a function called using Rundll32

Posted on 1997-10-06
2
821 Views
Last Modified: 2013-12-03
I am calling a function in a DLL from another DLL using
rundll32 myDLLName,myFunction. However, myFunction accepts
two arguments (eg; myFunction(char *szMsg, DWORD dNum)) - how do I pass those arguments using the above rundll32 statement?
Thanks

Anuj Varma  
0
Comment
Question by:avarma
[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
2 Comments
 
LVL 3

Expert Comment

by:msmits
ID: 1407256
Can't you just do a LoadLibrary(), GetProcAddress() and then call the function directly. This is supposed to be faster and cleaner.
0
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 1407257
rundll32 myDLLName,myFunction abc 3

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

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…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

734 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