HOWTO: Retrieve Win32-based Executable File (PE) Header Info

Last reviewed: September 30, 1997
Article ID: Q100636

The information in this article applies to:
  • Microsoft Visual C++, 32-bit Edition, versions 1.0, 2.0, 2.1, 4.0, 5.0

SUMMARY

The EXEHDR program displays the information in the executable file header for applications developed for the MS-DOS, OS/2, and Microsoft Windows operating systems. The following command retrieves PE (Portable Executable) header information for a Win32-based executable file (.EXE or .DLL filename extension) named <filename>:

   dumpbin -headers <filename>

To obtain information about exported and imported symbols, use one of the following commands:

   dumpbin -exports <filename>
   dumpbin -imports <filename>


Additional query words: vcnt
Keywords : TlsMisc kbfasttip
Version : WINDOWS:1.0,2.0,2.1,4.0,5.0;
Platform : WINDOWS
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.