Results 1 to 8 of 8

Thread: functions in DLLs

  1. #1
    Guest
    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

  2. #2
    Guest
    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

  3. #3
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    You can use the PE (Portable Executable) API in ImageHlp.dll to achieve this.
    A good example may be found by clicking this smily:

  4. #4
    Hyperactive Member WP's Avatar
    Join Date
    Aug 2000
    Location
    Belgium
    Posts
    278

    Wink View Dependencies

    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

    Visual Basic 6.0 EE SP5 / .Net
    Windows XP

  5. #5
    Guest
    The program is called Depends (or Dependency Walker).

    You can also use a Hex Editor for this.

  6. #6
    Guest
    Thanks! Greatly appreciated

    Sunny

  7. #7
    Guest
    Is it also possible to get the arguments needed by a function?

    Sunny

  8. #8
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width