
How get the File Version with VB or API Windows
Raphael,
I believe this is what you are looking for:
VB Declaration-------------------------------------------
Declare Function GetFileVersionInfo& Lib "version.dll" Alias _
"GetFileVersionInfoA" (ByVal lptstrFilename As String, ByVal dwHandle As
Long, _
ByVal dwLen As Long, lpData As Byte)
Description-----------------------------------------------------
Retrieves the file version information from a module that supports
version stamping.
Parameter Type/Description-------------------------------------------
lptstrFilename StringThe name of the file from which to load version
information.
dwHandle LongNot used under Win32
dwLen LongThe size of the byte array or buffer specified by the lpData
parameter. Use the GetFileVersionInfoSize function to determine the
required buffer size.
lpData ByteThe first byte in a buffer to load with the files version
information.
Return Value------------------------------------
LongNonzero on success, zero on failure. Sets GetLastError.
Platform-------------------------------------
Windows 95, Windows NT, Win16
All of the material presented here is copyrighted by either Desaware or
Macmillan. No part of this material may be used or reproduced in any
fashion (except in brief quotations used in critical articles and
reviews) without prior consent.
Quote:
> Hello,
> I would like to know how get the file version in VB5 or API ?
> Thanks.