?
Solved

Get DLL parameter description

Posted on 2002-04-15
2
Medium Priority
?
353 Views
Last Modified: 2013-12-03
I have a DLL file, for which I don't have source.
How can I find out, what functions does it contain, and what are calling conventions for them - parameter count and their data types.
0
Comment
Question by:Sektor
[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
2 Comments
 
LVL 7

Expert Comment

by:peterchen092700
ID: 6941845
often asked, still not possible.

You *can* find out the names of exported functions, but that's all information "legally" available.

Everything else requires digging through the DLL trying to figure out what it expects from the disassembly. Something that *can* give you the number of params, and some basic information how it's processed, but there is no general solution.

0
 
LVL 32

Accepted Solution

by:
jhance earned 200 total points
ID: 6941892
Have you checked with the people who developed the DLL?  They would (hopefully) know for sure.

In the case of undocumented DLLs and their interfaces, it's a pure reverse engineering problem.

I've found that NuMega's SoftICE is an invaluable tool here.  That, coupled with an examination of how the DLL is used by other programs that use it can often give you enough hints to go on.  There is no "pushbutton" solution here.  DLLs (unlike COM object) do NOT have any information embedded in them about quantity or type of calling parameters, calling conventions, or return values.

In other words, you're on your own....

To get what functions a DLL contains as EXPORTS is easy:

1) Use the Visual Studio DUMPBIN.EXE app like:

DUMPBIN /EXPORTS dllname.dll

2) Use the Visual Studio DEPENDS.EXE visual application.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

765 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