Getting function names from a module

This is a discussion on Getting function names from a module within the Windows Programming forums, part of the Platform Specific Boards category; Just wondering if its possible to obtain a list of functions that are contained inside a module. For example say ...

  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,674
    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, 06:18 AM
  2. Change this program so it uses function??
    By stormfront in forum C Programming
    Replies: 8
    Last Post: 11-01-2005, 07: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, 09:18 AM
  5. Replies: 5
    Last Post: 02-08-2003, 06:42 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21