🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5316

Re: Extracting File Version or Product Version

#5316
From: Bob Gonder
Date: Sun, 18 Sep 2005 15:24
15 lines
1291 bytes
Gav wrote:

>What do I use in order to extract the File Version or Product Version of a 
>program.

Perhaps something like this...

	DWORD size,handle,vlen;
	size=GetFileVersionInfoSize(filename,&handle);

	char*buffer = malloc(size);
	GetFileVersionInfo(filename,handle,size,buffer);

	VS_FIXEDFILEINFO * versinfo;
	VerQueryValue(buffer,"\\",&versinfo,&vlen)
Technical Details
Message-ID: <nr0ri15l224f6rdnf3ns3hc92l3stsekjj@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <432d621b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3e48571e01767423
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Extracting File Version or Product Version
Date: Sun, 18 Sep 2005 08:24:32 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <nr0ri15l224f6rdnf3ns3hc92l3stsekjj@4ax.com>
References: <432d621b$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 71.49.209.68
X-Trace: newsgroups.borland.com 1127056983 71.49.209.68 (18 Sep 2005 08:23:03 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail