System.SysUtils.GetFileVersion

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetFileVersion(const AFileName: string): Cardinal;

C++

extern DELPHI_PACKAGE unsigned __fastcall GetFileVersion(const System::UnicodeString AFileName);

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Returns file version.

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.

See Also