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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 353
  • Last Modified:

Imp DLL with function names and params ?

When I import a DLL, like with implib or impdef in Borland C++, I can use that DLL, but let's say it's not my own DLL like a Windows DLL, so, I don't know the functions parameters and the parameters type.
How could I get the informations.
Wrong answers are:
-read the doc
-ask the authors
-make the functions yourself

let's resume:
I would be able from a simple DLL to get the functions
that are inside, the parameters of those functions and
the types of those parameters.

thanks in advance.

      John.
0
jeurk
Asked:
jeurk
1 Solution
 
igorkCommented:
Hi John,
I am afraid that right answer on your question should be NO - of course if you don't want to try to disassembler DLL. Only export function names are kept in DLL files - not parameters and not intrinsic names.

Additional comment. If you have .obj file, and source was C++, and extern "C" keyword wasn't applied, function names will be decored according to C++ names convention and one CAN determine the number and types of parameters. So only if someone who has written DLL on C++ were used internal names as export names you would be able to determine parameters. E.g. @foo$qi is equivalent to foo(int) in source code. But usually nobody do so...

Regards,
IgorK.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now