GetFileVersion
GetFileVersionInfo is a Windows API routine used to retrieve version information embedded in the version resource of a file. It is commonly applied to executable files and dynamic-link libraries (exe, dll) that include a version resource. The retrieved data typically includes the file version, product version, and descriptive strings such as company name and file description.
In practice, GetFileVersionInfo is used in conjunction with GetFileVersionInfoSize to determine the required buffer size and
Typical workflow: call GetFileVersionInfoSize with the target file name to determine the buffer size; allocate a
The major, minor, build, and revision numbers are encoded in the high/low DWORDs of the version fields;