Getting Parameters to DLL functions

If I have a dll, with exported functions, but no .lib or .h file. Is it possible to work out what parameters thoses functions take, and therefore do a GetProcAddress.. and call them ?

any clues anyone ?


Thanks

Ian
ianwhiteAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
alexoConnect With a Mentor Commented:
>> please submit an answer!
Have fun!
0
 
alexoCommented:
The general answer is no.
If the DLL functions use the __stdcall convention, you can see how many BYTES the function expects to be pushed on the stack from it's name (the format is funcname@num).  Most arguments will be 32bit integers or pointers so you can guess the number of arguments as num/4.
0
 
alexoCommented:
Also, Borland C++ comes with an IMPLIB program that is supposed to generate import libraries from DLL files.

A brief search showed that it is downloadable from:
    ftp.cs.uregina.ca/pub/class/250/class/MASM Disks
(As part of the MASM package).
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
ianwhiteAuthor Commented:
Thanks Alexo, thats what I thought!
0
 
alexoCommented:
>> Thanks Alexo, thats what I thought!
If my suggestion was helpful, tell me and I'll submit an answer.  If I didn't tell you anything you didn't already know, you can still delete the question and get your points back.
0
 
ianwhiteAuthor Commented:
Yep, go on , its good to see people responding, please submit an answer!

ta
0
 
alexoCommented:
Letting an answer autograde after you suggested I submit an answer is an indication of extremely poor manners.
0
 
ianwhiteAuthor Commented:
Heh, I'm sorry, I guess I didnt click the right button, or maybe I missed your last email. I certainly didnt go out of my way to offend.

Thanks for your answer, hope I havent put you off answering in future.

ta,

Ian
0
All Courses

From novice to tech pro — start learning today.