Group: Version Information - Library: version
How to retrieve version information for the specified file
BOOL GetFileVersionInfo(
LPTSTR lptstrFilename,
DWORD dwHandle,
DWORD dwLen,
LPVOID lpData
); DECLARE INTEGER GetFileVersionInfo IN version.dll;
STRING lptstrFilename,;
INTEGER dwHandle,;
INTEGER dwLen,;
STRING @ lpData
lptstrFilename [in] Pointer to a null-terminated string that specifies the name of the file of interest.
dwHandle This parameter is ignored.
dwLen [in] Specifies the size, in bytes, of the buffer pointed to by the lpData parameter.
lpData [out] Pointer to a buffer that receives the file-version information.
If the function succeeds, the return value is nonzero.
Call the GetFileVersionInfoSize function first to determine the size, in bytes, of a file"s version information. The dwLen member should be equal to or greater than that value.
Home