Group: Version Information - Library: version
The GetFileVersionInfoSize function determines whether the operating system can retrieve version information for a specified file.
How to retrieve version information for the specified file
DWORD GetFileVersionInfoSize(
LPTSTR lptstrFilename,
LPDWORD lpdwHandle
);
DECLARE INTEGER GetFileVersionInfoSize IN version.dll;
STRING lptstrFilename,;
INTEGER lpdwHandle
lptstrFilename [in] Pointer to a null-terminated string that specifies the name of the file of interest.
lpdwHandle [out] Pointer to a variable that the function sets to zero.
If the function succeeds, the return value is the size, in bytes, of the file"s version information.
If version information is available, GetFileVersionInfoSize returns the size, in bytes, of that information.