list DLL functions

  • Thread starter Thread starter Sheikko
  • Start date Start date
S

Sheikko

Hi,
I want to list the functions contained in a DLL in c# , is there a code
for doing this?
thank you very much
 
Thank you.
I have tried it, but He told me that the "dll does not contain a CLI
Header"
 
Sheikko said:
Hi,
I want to list the functions contained in a DLL in c# , is there a code
for doing this?
thank you very much


Use the tools tools like dumpbin.exe and depends.exe , they are specially designed for that.
If you want to do it from C# you will need a good grasp of the PE library structure so you
can read it's export table using .NET's FileIO classes.

Willy.
 
thank you. it work. It list me the functions and this is very good. But
I want also if possible if there is a way to list how many arguments
the function requires and their type.
thank you.
 
Sheikko said:
thank you. it work. It list me the functions and this is very good. But
I want also if possible if there is a way to list how many arguments
the function requires and their type.
thank you.

As I told you in another posting of yours, you can't get at the exact arguments or the
return values of a DLL's exported functions. You need to consult the documentation of the
DLL's exports, if these aren't documented you should try to get the header file(s) used to
build the DLL, if you can't get either of them - DON'T CALL the exported functions, they
were not designed to be called from arbitrary code.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top