[DUG] Finding what type of executable a program is

Stefan Mueller muellers at orcl-toolbox.com
Tue Dec 13 21:40:29 NZDT 2011


Microsoft visual studio has something that worked for me recently:

 

C:\Users\Owner>"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\dumpbin" /headers d:\frmd2f.dll

Microsoft (R) COFF/PE Dumper Version 10.00.30319.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

 

Dump of file d:\frmd2f.dll

 

PE signature found

 

File Type: DLL

 

FILE HEADER VALUES

            8664 machine (x64)  << - this one shows it’s compiled for 64bit !!!

               6 number of sections

        4D132F20 time date stamp Thu Dec 23 20:14:40 2010

               0 file pointer to symbol table

               0 number of symbols

              F0 size of optional header

            2022 characteristics

                   Executable

                   Application can handle large (>2GB) addresses

                   DLL

 

OPTIONAL HEADER VALUES

             20B magic # (PE32+)   <<64bit shows as PE32+, 32bit shows as PE32

 

 


Kind Regards,
Stefan Mueller 



 

 

From: delphi-bounces at listserver.123.net.nz [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of John Bird
Sent: Tuesday, December 13, 2011 5:27 PM
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Finding what type of executable a program is

 

Are there any good utilities to show what types of executable a file is? 

 

(On Unix/Linux there is a utility called file which does a good job of diagnosing a file type – the GNU version I have just says “Microsoft Executable” for 16 bit and 32 bit executables)

 

John

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20111213/13dc8510/attachment.html 


More information about the Delphi mailing list