RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.GetFileVersion Function

Returns file version.

Pascal
function GetFileVersion(const AFileName: string): Cardinal;
C++
unsigned GetFileVersion(const AnsiString AFileName);

SysUtils

GetFileVersion returns the most significant 32 bits of a file binary version number. AFileName specifies the name of the file, which is searched using the same path as the LoadLibrary function. 

GetFileVersion is only available on Windows and must not be used in cross-platform code. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!