Solved

passing arguments to a function called using Rundll32

Posted on 1997-10-06
2
678 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
2 Comments
 
LVL 3

Expert Comment

by:msmits
Comment Utility
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
Comment Utility
rundll32 myDLLName,myFunction abc 3

0

Featured Post

Highfive Gives IT Their Time Back

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

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

743 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

18 Experts available now in Live!

Get 1:1 Help Now