网站首页  词典首页

请输入您要查询的函数:

 

术语 getfileversioninfosize
释义 GetFileVersionInfoSize
语法:
DWORD GetFileVersionInfoSize( LPCTSTR lptstrFilename,
LPDWORD lpdwHandle
);
GetFileVersionInfoSize功能
确定操作系统是否可以检索一个指定的文件版本信息。如果版本信息可用,GetFileVersionInfoSize返回大小,以字节为单位的信息。
参数
lptstrFilename
[in]指向一个空结束的字符串,指定感兴趣的文件的名称。该函数使用的搜索序列的LoadLibrary函数指定。
在Windows 95/98/Me:在指定的文件名短路径的形式必须少于126个字符。
lpdwHandle
[out]指向一个变量的函数设置为零。
返回值
如果函数成功,返回值的大小,以字节为单位,该文件的版本信息。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
Windows NT 3.51和更早的版本:版本信息功能不使用16位Windows文件图像。
Windows 95/98/Me中,Windows NT 4.0和Windows 2000中:这些问题都16 -和32位文件的图像功能的工作。
Windows XP中:16这些职能的工作- ,32 - ,和64位文件的图像。
调用联络,然后调用GetFileVersionInfo函数GetFileVersionInfoSize功能。由GetFileVersionInfoSize返回的大小表示为GetFileVersionInfo返回的版本信息所需的缓冲区大小。
在Windows 95/98/Me:GetFileVersionInfoSizeW是支持微软层对于Unicode。若要使用此版本,您必须添加一些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。
功能信息
最低DLL版本 version.dll
在Winver.h HeaderDeclared,头文件:winuser.h
import libraryVersion.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为ANSI和Unicode版本。
参见
版本信息概览,GetFileVersionInfo,VS_VERSIONINFO,VerQueryValue
==英文原文==GetFileVersionInfoSize Function
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.
Syntax
DWORD GetFileVersionInfoSize( LPCTSTR lptstrFilename,
LPDWORD lpdwHandle
);
Parameters
lptstrFilename
[in] Pointer to a null-terminated string that specifies the name of the file of interest. The function uses the search sequence specified by the LoadLibrary function.
Windows 95/98/Me: The short path form of the specified file name must be less than 126 characters.
lpdwHandle
[out] Pointer to a variable that the function sets to zero.
Return Value
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
Windows NT 3.51 and earlier: The version information functions do not work with 16-bit Windows file images.
Windows 95/98/Me, Windows NT 4.0 and Windows 2000: These functions work on both 16- and 32-bit file images.
Windows XP: These functions work on 16-, 32-, and 64-bit 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.
Windows 95/98/Me: GetFileVersionInfoSizeW is supported by the Microsoft Layer for Unicode. To use this version, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems .
Function Information
Minimum DLL Versionversion.dll
HeaderDeclared in Winver.h, include Windows.h
Import libraryVersion.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as ANSI and Unicode versions.
See Also
Version Information Overview , GetFileVersionInfo , VS_VERSIONINFO , VerQueryValue
==原始网址==http://msdn.microsoft.com/en-us/library/ms647005(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:28:36