views:

476

answers:

2

I have a DLL file that has some helpful functions I want to call in my application. Unfortunately I don't have the documentation for it any longer.

Is there any way I can discover what are the functions exported by the DLL and their method signature?

Maybe there's a utility that lists the functions and their arguments.

Know of any?

+5  A: 
Ruben Bartelink
@mezoid: Thanks muchly for the edit. Sorry for mangling your it, but your linking seems to mangle my "edit:" block. Its obviously less that ideal. Dont have time to figure out the correct escaping syntax right now :D
Ruben Bartelink
+3  A: 

The windows SDK used to include the dependency walker GUI utility that can be used to explore DLL content:

Dependency Walker is a free utility that scans any 32-bit or 64-bit Windows module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of all dependent modules. For each module found, it lists all the functions that are exported by that module, and which of those functions are actually being called by other modules. Another view displays the minimum set of required files, along with detailed information about each file including a full path to the file, base address, version numbers, machine type, debug information, and more.

Nowadays, it can be found here.

For method signature detail and creating inter-connection .NET code, look for your DLL in the pinvoke site. You can also try their add-in to Visual Studio 2003 and 2005.

gimel
Well dependency walker didn't give me details of arguments for the functions. That would have been helpful.
Cyril Gupta
Added reference to pinvoke.net
gimel