gendef - DLL export extractor
dumps DLL export information from 32- and 64-bit Windows
executables (respectively PE32 and PE32+ executables).
- Dump to stdout
- -h, --help
- Briefly describe the syntax and options.
- -a, --assume-stdcall
- Assume functions with ambiguous calling conventions use
- -I, --include-def-path
- Add additional search paths in which to look for hint .def
- -f, --no-forward-output
- Don't output forwarders.
By default gendef
writes the DLL export information to a file named after
the DLL, replacing .dll with .def.
For 32-bit DLLs, gendef
cannot detect if a function with no return value
(void) exported by a DLL uses stdcall or cdecl. Two workarounds are available:
either use the " -a
" option to force stdcall calling
conventions, or generate .def files for any DLLs the DLL you're interested in
depends upon. gendef
will read other .def files found in the working
directory to determine the calling convention in use.
64-bit DLLs are not affected, since they only use a single calling convention.
was written by Kai Tietz and Jonathan Yong of the MinGW-w64
This manual page was written by Stephen Kitt <firstname.lastname@example.org>, based on
information provided with the program and in the project's wiki, for the
Debian GNU/Linux system (but may be used by others).