?
Solved

Imp DLL with function names and params ?

Posted on 1997-09-26
1
Medium Priority
?
350 Views
Last Modified: 2008-03-06
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
Comment
Question by:jeurk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
igork earned 300 total points
ID: 1170417
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

719 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