Re: win2k, service, pg_ctl, popen, etc

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: win2k, service, pg_ctl, popen, etc
Date: 2004-07-21 14:10:58
Message-ID: 40FE7972.3000507@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Bruce Momjian 2004-07-21 14:20:57 Re: win2k, service, pg_ctl, popen, etc
Previous Message Magnus Hagander 2004-07-21 14:06:37 Re: win2k, service, pg_ctl, popen, etc