How to read 64-bit executable file version?

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Apr 20 17:15:20 GMT 2009


On Mon, Apr 20, 2009 at 07:50:57PM +0300, Andrey Kondakov wrote:
> Hi All,
> I use samba 3.0.24 in order to check file versions on remote hosts using
> smbclient and version built-in command.
> Not long ago I started to notice that automatic scripts return errors and
> the reason was that 64-bit native executables were inspected.
> For example, iexplore.exe on 64-bit Vista.
> 
> Error that I got is "PE file [<executable>] wrong machine = 0x..."
> 
> I suggest 64-bit executables have different header structure and that's why
> I am about to patch my samba, but can not find
> useful information how to calculate appropriate header offsets and all that
> is relevant.
> 
> Can somebody help and give guidelines?

What part of Samba would inspect PE files now?

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090420/b28981ce/attachment.bin


More information about the samba-technical mailing list