Thread: Getting function names from a module

  1. #1
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681

    Getting function names from a module

    Just wondering if its possible to obtain a list of functions that are contained inside a module. For example say I have:
    Code:
    HMODULE hmod = LoadLibrary(TEXT("some.dll"));
    Is there anyway to get a list of the functions so that later I might be able to do:
    Code:
    FuncPtr = GetProcAddress(hmod, funcname);
    where funcname is a variable that holds the name of the function.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Yes, you have to parse the PE format.

    http://search.microsoft.com/search/r...&c=4&s=1&swc=4

    gg

  3. #3
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Thanks codeplug

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Troubleshooting Input Function
    By SiliconHobo in forum C Programming
    Replies: 14
    Last Post: 12-05-2007, 07:18 AM
  2. Change this program so it uses function??
    By stormfront in forum C Programming
    Replies: 8
    Last Post: 11-01-2005, 08:55 AM
  3. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  4. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 10:18 AM
  5. Replies: 5
    Last Post: 02-08-2003, 07:42 PM