Link to home
Start Free TrialLog in
Avatar of avarma
avarma

asked on

passing arguments to a function called using Rundll32

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  
Avatar of msmits
msmits

Can't you just do a LoadLibrary(), GetProcAddress() and then call the function directly. This is supposed to be faster and cleaner.
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial