GetFileVersionInfo
GetFileVersionInfo is a Windows API function used to retrieve version information from a binary file that contains a version resource. It is part of the Version Information API and is implemented by Version.dll. The function, together with GetFileVersionInfoSize and VerQueryValue, enables programs to read version strings and numeric version data embedded in executables, DLLs, and other files.
GetFileVersionInfoSize returns the size of the version information for the specified file. GetFileVersionInfo fills a buffer
Prototype and usage: DWORD GetFileVersionInfoSize(LPCTSTR lptstrFilename, LPDWORD lpdwHandle); BOOL GetFileVersionInfo(LPCTSTR lptstrFilename, DWORD dwHandle, DWORD dwLen, LPVOID
VerQueryValue is used to extract specific values, such as the numeric version in VS_FIXEDFILEINFO (dwFileVersionMS, dwFileVersionLS)