This function returns version information about a specified file.
BOOL GetFileVersionInfo( LPTSTR lptstrFilename, DWORD dwHandle, DWORD dwLen, LPVOID lpData );
[in] Pointer to a null-terminated string that contains the name of the file specified.
[in] The size, in bytes, of the buffer pointed to by the lpData parameter.
Call the GetFileVersionInfoSize function first to determine the size, in bytes, of file version information. The dwLen parameter should be equal to or greater than that value.
If the buffer pointed to by lpData is not large enough, the function truncates the file version information to the size of the buffer.
[out] Pointer to a buffer that receives the file-version information.
Use this value in a subsequent call to the VerQueryValue function to obtain data from the buffer.
The file version information is always in Unicode format.
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.