Skip to content

Latest commit

 

History

History
117 lines (78 loc) · 4.08 KB

nf-winver-getfileversioninfosizea.md

File metadata and controls

117 lines (78 loc) · 4.08 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:winver.GetFileVersionInfoSizeA
GetFileVersionInfoSizeA function (winver.h)
Determines whether the operating system can retrieve version information for a specified file. If version information is available, GetFileVersionInfoSize returns the size, in bytes, of that information. (ANSI)
GetFileVersionInfoSizeA
winver/GetFileVersionInfoSizeA
menurc\getfileversioninfosize.htm
menurc
VS|winui|~\winui\windowsuserinterface\resources\versioninformation\versioninformationreference\versioninformationfunctions\getfileversioninfosize.htm
12/05/2018
GetFileVersionInfoSize, GetFileVersionInfoSize function [Menus and Other Resources], GetFileVersionInfoSizeA, GetFileVersionInfoSizeW, _win32_GetFileVersionInfoSize, _win32_getfileversioninfosize_cpp, menurc.getfileversioninfosize, winui._win32_getfileversioninfosize, winver/GetFileVersionInfoSize, winver/GetFileVersionInfoSizeA, winver/GetFileVersionInfoSizeW
winver.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
GetFileVersionInfoSizeW (Unicode) and GetFileVersionInfoSizeA (ANSI)
Version.lib
Api-ms-win-core-version-l1-1-0.dll
Windows
19H1
GetFileVersionInfoSizeA
winver/GetFileVersionInfoSizeA
c++
APIRef
kbSyntax
DllExport
api-ms-win-core-version-l1-1-0.dll
API-MS-Win-Core-Versionansi-L1-1-1.dll
API-MS-Win-Core-Version-L1-1-1.dll
KernelBase.dll
version.dll
GetFileVersionInfoSize
GetFileVersionInfoSizeA
GetFileVersionInfoSizeW

GetFileVersionInfoSizeA function

-description

Determines whether the operating system can retrieve version information for a specified file. If version information is available, GetFileVersionInfoSize returns the size, in bytes, of that information.

-parameters

-param lptstrFilename [in]

Type: LPCTSTR

The name of the file of interest. The function uses the search sequence specified by the LoadLibrary function.

-param lpdwHandle [out, optional]

Type: LPDWORD

A pointer to a variable that the function sets to zero.

-returns

Type: DWORD

If the function succeeds, the return value is the size, in bytes, of the file's version information.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

-remarks

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.

Note

The winver.h header defines GetFileVersionInfoSize as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

-see-also

Conceptual

GetFileVersionInfo

Reference

VS_VERSIONINFO

VerQueryValue

Version Information