Re: win2k, service, pg_ctl, popen, etc - Mailing list pgsql-hackers-win32

From Andreas Pflug
Subject Re: win2k, service, pg_ctl, popen, etc
Date
Msg-id 40FE7972.3000507@pse-consulting.de
Whole thread Raw
In response to Re: win2k, service, pg_ctl, popen, etc  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers-win32
Andrew Dunstan wrote:

>
> As I understand it, Windows has a standard set of DLL/EXE metadata
> (build number, copyright, product name yadda yadda yadda) stored in some
> well-known segment of the file. Is there any reason we can't put the
> version number somewhere in there and use some standard API to extract
> it, rather than running the .exe to make it tell us? (Not that I have
> any idea how to do such a thing.)

It's the VERSION resource, look at GetFileVersionInfo in the docs.

Regards,
Andreas

pgsql-hackers-win32 by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: win2k, service, pg_ctl, popen, etc
Next
From: Bruce Momjian
Date:
Subject: Re: win2k, service, pg_ctl, popen, etc