Extracting DLL .def exported Function Names HOWTO

Extracting DLL .def exported Function Names HOWTO

Post by mlat » Thu, 26 Jul 2001 17:39:58



hi,
  I have been trying to write some code to extract the names of the
functions exported from a dll via the def file. (NOT USE the provided
utilities like the dependency walker)
Has anyone got ideas?.
I do not know the ordinal numbers, or have the .dbg file to use the
dbghelp functions.
thanks in advance

mlati

 
 
 

Extracting DLL .def exported Function Names HOWTO

Post by Michael Danilo » Fri, 27 Jul 2001 06:59:16



> hi,
>   I have been trying to write some code to extract the names of the
> functions exported from a dll via the def file. (NOT USE the provided
> utilities like the dependency walker)
> Has anyone got ideas?.
> I do not know the ordinal numbers, or have the .dbg file to use the
> dbghelp functions.
> thanks in advance

> mlati

You will have to read .edata section of a dll.
Check Winnt.h file in /Include directory of Visual Studio.
Good description of NT Portable Executable File Format can be found in
<<The Portable Executable File Format from Top to Bottom>> article (MSDN).
And take a look at Exeview and Pefile SDK samples.