Is it possible to retrieve the names of functions that a DLL has to offer if I don't have the documentation for that DLL?
Sunny
Printable View
Is it possible to retrieve the names of functions that a DLL has to offer if I don't have the documentation for that DLL?
Sunny
I don't know the answer. I tried adding a dll to the reference list of VB6 (SP3) but it wouldn't.
This response is really to get notified if anyone else knows the answer.
Good Luck
DerFarm
You can use the PE (Portable Executable) API in ImageHlp.dll to achieve this.
A good example may be found by clicking this smily: :rolleyes:
When you are in Windows Explorer, and you click with the right mouse button on the DLL you will see "View Dependencies" in the list(if you have installed, if not ask me for)and click it. In that program, you have to see in the list with "Functions" above it. These are the aliases for the available functions for that DLL.
WP
The program is called Depends (or Dependency Walker).
You can also use a Hex Editor for this.
Thanks! Greatly appreciated
Sunny
Is it also possible to get the arguments needed by a function?
Sunny
When calling a function, the arguments are pushed into the stack.
Every function pops as many arguments as it wants to pop from the stack.
Only if you have documentation, you can know how many arguments.
At least that's what I read. :rolleyes: