Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers-win32 by date

Next:From: Bruce MomjianDate: 2004-07-21 14:20:57
Subject: Re: win2k, service, pg_ctl, popen, etc
Previous:From: Magnus HaganderDate: 2004-07-21 14:06:37
Subject: Re: win2k, service, pg_ctl, popen, etc

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group