Solved

Imp DLL with function names and params ?

Posted on 1997-09-26
1
311 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
1 Comment
 

Accepted Solution

by:
igork earned 100 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

932 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now