Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

GetFileVersionInfoSize

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function checks whether the OS can obtain version information about a specified file. If version information is available, this function returns the size, in bytes.


DWORD GetFileVersionInfoSize(
  LPTSTR lptstrFilename,
  LPDWORD lpdwHandle
);
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.

The size, in bytes, of the file version indicates success. Zero indicates failure. To get extended error information, call GetLastError.

The version information functions are only compatible with 32-bit Windows file images. They are not compatible with 16-bit Windows file images.

Call this function before calling the GetFileVersionInfo function. The size returned by this function indicates the buffer size required for the version information returned by GetFileVersionInfo.

Headerwinbase.h
Librarycoredll.lib
Windows Embedded CEWindows CE 3.0 and later
Windows MobileWindows Mobile Version 5.0 and later
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.