Mode options depend on the mode given as the first argument.
Helpmode
No options are used. The program prints the help info and then exits.
Dumpmodefile Dumps the contents of file. Various file formats are supported (PE, NE, LE, Minidumps, .lnk).
-C Turns on symbol demangling.
-f Dumps file header information. This option dumps only the standard PE header structures, along
with the COFF sections available in the file.
-jdir_name
Dumps only the content of directory dir_name, for files which header points to directories. For
PE files, the import, export, debug, resource, tls, loadcfg, clr, reloc and except directories, as
well as the apiset section, are implemented. For NE files, the export and resource directories
are implemented.
-x Dumps everything. This command prints all available information (including all available
directories - see -j option) about the file. You may wish to pipe the output through more/less or
into a file, since a lot of output will be produced.
-G Dumps contents of debug section if any (for now, only stabs information is supported).
Specmodedll Use dll for input file and generate implementation code.
-Idir Look for prototypes in dir (implies -c). In the case of Windows DLLs, this could be either the
standard include directory from your compiler, or a SDK include directory. If you have a text
document with prototypes (such as documentation) that can be used also, however you may need to
delete some non-code lines to ensure that prototypes are parsed correctly. The dir argument can
also be a file specification (e.g. include/*). If it contains wildcards you must quote it to
prevent the shell from expanding it. If you have no prototypes, specify /dev/null as dir.
winedump may still be able to generate some working stub code for you.
-c Generate skeleton code (requires -I). This option tells winedump to create function stubs for
each function in the DLL. As winedump reads each exported symbol from the source DLL, it first
tries to demangle the name. If the name is a C++ symbol, the arguments, class and return value are
all encoded into the symbol name. Winedump converts this information into a C function prototype.
If this fails, the file(s) specified in the -I argument are scanned for a function prototype. If
one is found it is used for the next step of the process, code generation.
-t TRACE arguments (implies -c). This option produces the same code as -c, except that arguments are
printed out when the function is called. Structs that are passed by value are printed as
"struct", and functions that take variable argument lists print "...".
-fdll Forward calls to dll (implies -t). This is the most complicated level of code generation. The
same code is generated as -t, however support is added for forwarding calls to another DLL. The
DLL to forward to is given as dll.
-D Generate documentation. By default, winedump generates a standard comment at the header of each
function it generates. Passing this option makes winedump output a full header template for
standard Wine documentation, listing the parameters and return value of the function.
-oname
Set the output dll name (default: dll). By default, if winedump is run on DLL foo, it creates
files foo.spec, foo_main.c etc, and prefixes any functions generated with FOO_. If -obar is
given, these will become bar.spec, bar_main.c and BAR_ respectively. This option is mostly useful
when generating a forwarding DLL.
-C Assume __cdecl calls (default: __stdcall). If winebuild cannot determine the calling convention,
__stdcall is used by default, unless this option has been given. Unless -q is given, a warning
will be printed for every function that winedump determines the calling convention for and which
does not match the assumed calling convention.
-snum Start prototype search after symbol num.
-enum End prototype search after symbol num. By passing the -s or -e options you can have winedump try
to generate code for only some functions in your DLL. This may be used to generate a single
function, for example, if you wanted to add functionality to an existing DLL.
-Ssymfile
Search only prototype names found in symfile. If you want to only generate code for a subset of
exported functions from your source DLL, you can use this option to provide a text file containing
the names of the symbols to extract, one per line. Only the symbols present in this file will be
used in your output DLL.
-q Don't show progress (quiet). No output is printed unless a fatal error is encountered.
-v Show lots of detail while working (verbose). There are 3 levels of output while winedump is
running. The default level, when neither -q or -v are given, prints the number of exported
functions found in the dll, followed by the name of each function as it is processed, and a status
indication of whether it was processed OK. With -v given, a lot of information is dumped while
winedump works: this is intended to help debug any problems.
Symmodesym Demangles C++ symbol sym and then exits.