Function Parameters in a C DLL?
-
I want to call a function, exported by a C DLL, in my project, but I do not know its parameters! How can I get parameters (signature) of a function exported by a C DLL? I am looking for a tool or any code that achieves this. Dependency Walker fails to show signature of C functions, why? ARSALAN MALIK
-
I want to call a function, exported by a C DLL, in my project, but I do not know its parameters! How can I get parameters (signature) of a function exported by a C DLL? I am looking for a tool or any code that achieves this. Dependency Walker fails to show signature of C functions, why? ARSALAN MALIK
Arsalan Malik wrote: How can I get parameters (signature) of a function exported by a C DLL? You look in its header file. Arsalan Malik wrote: I am looking for a tool or any code that achieves this. Notepad :p Arsalan Malik wrote: Dependency Walker fails to show signature of C functions, why? Because it relies on the header file. top secret
Download xacc-ide 0.0.3 now!
See some screenshots -
Arsalan Malik wrote: How can I get parameters (signature) of a function exported by a C DLL? You look in its header file. Arsalan Malik wrote: I am looking for a tool or any code that achieves this. Notepad :p Arsalan Malik wrote: Dependency Walker fails to show signature of C functions, why? Because it relies on the header file. top secret
Download xacc-ide 0.0.3 now!
See some screenshotsYou look in its header file. Thankyou for the reply. Problem is that I do not have any header/lib file for the dll. How to extract function signature from dll only? ARSALAN MALIK
-
You look in its header file. Thankyou for the reply. Problem is that I do not have any header/lib file for the dll. How to extract function signature from dll only? ARSALAN MALIK
You can't. Since the parameters are passed on the stack, you must rely on the code that is popping the parameters off the stack in order to get them passed. On top of that parameters can also be passed by pointers, where the pointer is pushed onto the stack and poped off by the function code, to be used to point to an area of memory that, unless you had the header file to describe it to you, would be utterly meaningless without any type of context. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome