Thread: Gathering DLL Infromation

  1. #1
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002

    Gathering DLL Infromation

    What kind of information can be extracted from dll files? I've searched for a while; it didn't seem that there is a lot of information on this subject. The most useful site I've seen is:
    Of which it seems you can only extract functions, and tell if they are imported or exported. It seems that there is no way to determine how many parameters are needed for the functions, or anything else. Is there some method of trying to call the function, and by the errors it returns that you could tell how many parameters, or what kind of parameters are needed? If that's not possible (my gut says no), then would it be possible to monitor the process using the dll file to determine what was passed to the functions?

    Thanks for all help
    Environment: OS X, GCC / G++
    Codes: Java, C#, C/C++
    AOL IM: neandrake, Email: neandrake (at) gmail (dot) com

  2. #2
    Registered User
    Join Date
    Sep 2004
    If that's not possible
    It's not. You can sometimes get the number of bytes that a DLL takes in its parameter list from the name mangling though.

    then would it be possible to monitor the process using the dll file to determine what was passed to the functions?
    Unfortunately hooking a DLL function requires you to know what parameters it takes. This results in a catch-22 situation.

    If you were really set on knowing what the DLL function takes for parameters, you could always dissassemble an exe which uses the DLL, and then attempt to figure out what the program is passing to the dll function. This takes a bit of skill and a lot of patience though

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Visalia, CA, USA
    Hmmm what are you trying to do exactly? Perhaps one of us can help you unravel whatever mystery. Other than that I'd just disassemble the function. Its pretty easy to figure out what sort of parameters are used via disassembly.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 07:11 AM
  2. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 02:20 AM
  3. DLL and std::string woes!
    By Magos in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2004, 12:34 PM
  4. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 05:29 AM
  5. God
    By datainjector in forum A Brief History of
    Replies: 746
    Last Post: 12-22-2002, 12:01 PM