GetFileVersionInfoSize (Windows CE 5.0)
This function determines whether the OS can obtain version information about a specified file. If version information is available, GetFileVersionInfoSize returns the size, in bytes.
DWORD GetFileVersionInfoSize(LPTSTR lptstrFilename,LPDWORD lpdwHandle);
Parameters
- lptstrFilename
[in] Pointer to a null-terminated string that specifies the name of the file. - lpdwHandle
[out] Pointer to a variable that the function sets to zero.
Return Values
If the function succeeds, the return value is the size, in bytes, of the file's version.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
The version information functions are only compatible with 32-bit Windows file images. They are not compatible with 16-bit Windows file images.
Call the GetFileVersionInfoSize function before calling the GetFileVersionInfo function. The size returned by GetFileVersionInfoSize indicates the buffer size required for the version information returned by GetFileVersionInfo.
Requirements
OS Versions: Windows CE 3.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.
See Also
GetFileVersionInfo | VerQueryValue
Send Feedback on this topic to the authors