Board index » delphi » How to find out what parameters uses a function in a DLL w/o source?

How to find out what parameters uses a function in a DLL w/o source?

Hi all,

I've got a DLL with no description and no source. I'd like to use the functions
in the library but I have no idea how could I find out what parameters use the
functions. I've got the list of functions (with the use of TDump Borland utility)
but all it contains are function names and ordinals. Can anyone help with the
matter?

Peter Mandzak
University Hamburg

 

Re:How to find out what parameters uses a function in a DLL w/o source?


On 28 Oct 1997 12:55:47 GMT, fg4a...@GEO.math.uni-hamburg.de (Peter

Quote
Mandzak) wrote:
>I've got a DLL with no description and no source. I'd like to use the functions
>in the library but I have no idea how could I find out what parameters use the
>functions. I've got the list of functions (with the use of TDump Borland utility)
>but all it contains are function names and ordinals. Can anyone help with the
>matter?

Actually, there are no other solutions to your problem than:

        - getting the docs
        - getting the source
        - doing some disassembling

If you have neither the source nor the docs, you must do some hard
work. For example, enabled Delphi's CPU view, and create an app which
makes a dummy call to the functions. Then trace into the DLL code, and
inspect the code used to access the parameters in stack (or
registers). Let me warn you: this is hard work, and requires special
knowledge. My suggestion is to try *hard* to get the docs.

Regards,

Jani J?rvinen
Helsinki Finland

Tools, information, tips, reviews & bug lists
for professional Delphi, Win32 and WinHelp developers.

mailto:ja...@dystopia.fi
http://www.dystopia.fi/~janij/

Other Threads