Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

passing arguments to a function called using Rundll32

Posted on 1997-10-06
2
Medium Priority
?
1,021 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
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 100 total points
ID: 1407257
rundll32 myDLLName,myFunction abc 3

0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

971 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