I wanna use a c++ dll with dllImport and I dont really know what functions there are in the dll:afrog:
Is there a tool that would let me to list the function names in a dll?
Printable View
I wanna use a c++ dll with dllImport and I dont really know what functions there are in the dll:afrog:
Is there a tool that would let me to list the function names in a dll?
I don't think so. You'd need the documentation for that DLL. Now, if it were a .NET DLL, you could use System.Reflection. :afrog:
tricky bastards! so there is no way to get a list of the functions? this is indeed very suspicous. are they afraid of intellectual theft?:bigyello:
You can get the method names using the dependency walker, but you can't get the params.
You can also use the dumpbin utility shipped with VS.
hmm what's dumpbin? I dont think I have it installed. is it under the c++ tools? :rolleyes:Quote:
Originally posted by Mike Hildner
You can also use the dumpbin utility shipped with VS.
uuh there should be a possible way to brute force it for paramters too ha?:D
Nope. The format was designed with that in mind. Its not possible.Quote:
Originally posted by MrPolite
uuh there should be a possible way to brute force it for paramters too ha?:D
My installation has dumpbin.exe in C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin. I have VS Enterprise Architect and have installed VC++, not really sure if it's part of that install or what. When I goto Start\All Programs\Microsoft VS 2003 .NET\Visual Studio .NET Tools\VS Command Prompt, that folder is in the %PATH%, so you can navigate to ...\System32 or whatever and run it.
FWIW, I was googling to see if it's possible to figure out the arguments to a dll. Apparently, for "native" windows dlls, what gets encoded is the number of bytes for the arguments, but you can't tell what type of arg is expected. One post suggested "The way to go
here is to disassemble the dll and check what the function actually is
doing."
Best of luck,
Mike
hmm interesting. thank you
reverse engineering is always cool :D (ofcourse I dont have the knowledge for it haha)
I do not mean to advocate dissasembling anyone's compiled code. That's usually illegal. Not that you'd get caught :) .
But if you can't get the API docs, why bother with messing around with a propriatry API? Sometimes you can't help it, but there's usually alternatives :)