Windows Executable File Dump Routines Orion Sky Lawlor, olawlor@acm.org, 2005/04/12 Code released to Public Domain The Microsoft "PE" executable format is used for all Windows executables (.exe), libraries (.dll), screen savers (.scr), and likely several other file formats. MS-DOS executables (also named .exe) do not include a PE record, and hence will not be parsed properly. dump_generic.cpp is a self-contained C++ program to read and display selected information from any PE file. It's also a good example of binary I/O for a complicated file format, done in a portable way. dump_win32.cpp displays the same information as dump_generic, but does so using the Microsoft "image helper" library, and hence only runs on Windows machines.