GetFileVersionInfoSize

  DWORD GetFileVersionInfoSize(lpszFile, lpdwHandle)    
  LPSTR lpszFile; /* address of filename */
  LPDWORD lpdwHandle; /* always set to zero */

The GetFileVersionInfoSize function determines whether it can obtain version information from the specified file. If version information is available, GetFileVersionInfoSize returns the size of the buffer required to hold the version information.

Parameters

lpszFile

Points to the null-terminated string that specifies the file name.

lpdwHandle

Points to a variable that this function sets to zero.

Return Value

The return value is the buffer size, in bytes, required to hold the version information. The return value is zero if the function failed. Use the GetLastError function to obtain extended error information.

See Also

GetFileVersionInfo