BOOL GetFileVersionInfo(lpszFile, dwHandle, cbBuf, lpvData) | |||||
LPSTR lpszFile; | /* address of file name | */ | |||
DWORD dwHandle; | /* ignored | */ | |||
DWORD cbBuf; | /* size of buffer | */ | |||
LPVOID lpvData; | /* address of buffer for file-version info | */ |
The GetFileVersionInfo function returns version information about the specified file.
lpszFile
Points to the null-terminated string that specifies the file name.
dwHandle
This parameter is ignored.
cbBuf
Specifies the size of the buffer identified by lpvData. The GetFileVersionInfoSize function returns the buffer size required to hold the file version information. If the buffer is not large enough, the file version information is truncated to the size of the buffer.
lpvData
Points to the buffer that receives the file version information. This parameter is used by a subsequent call to the VerQueryValue function.
The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.
GetFileVersionInfoSize, VerQueryValue, VS_VERSION_INFO