RAD Studio VCL Reference
SysUtils.GetFileVersion Function

Returns file version.

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

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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!