Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.54 KB

TPJVersionInfo-FileVersionNumber.md

File metadata and controls

34 lines (21 loc) · 1.54 KB

FileVersionNumber property

Project: Version Information Component

Unit: PJVersionInfo

Class: TPJVersionInfo

Applies to: ~>3.0

property FileVersionNumber: TPJVersionNumber;

Description

This read only property gets the version number of the file being examined.

The version number is specified in the fixed file information part of the VERSIONINFO resource statement.

The value of this property is derived from the dwFileVersionMS and dwFileVersionLS members of the VS_FIXEDFILEINFO structure that can be accessed using the FixedFileInfo property. The relationship between the fields of the TPJVersionNumber record returned by this property and dwFileVersionMS and dwFileVersionLS is as follows:

TPJVersionNumber field VS_FIXEDFILEINFO field
V1 HiWord(dwFileVersionMS)
V2 LoWord(dwFileVersionMS)
V3 HiWord(dwFileVersionLS)
V4 LoWord(dwFileVersionLS)

The value of FileVersionNumber does not necessarily correspond to the string value given by the FileVersion† property as this is separately defined in the VERSIONINFO resource statement.

Footnote

† The FileVersion property is an alias for the StringFileInfo[] array property when 'FileVersion' is passed as the index