当前位置:首页 科普知识 GetFileVersionInfo

GetFileVersionInfo

发布时间:2023-09-15 03:47:55

GetFileVersionInfo是一个函数名,从支持版本标记的一个模块里获取文件版本信息。

GetFileVersionInfo介绍

GetFileVersionInfo是一个函数名,从支持版本标记的一个模块里获取文件版本信息。

GetFileVersionInfo

GetFileVersionInfo基本信息

GetFileVersionInfo

VB声明

Declare Function GetFileVersionInfo& Lib "version.dll" Alias "GetFileVersionInfoA" (ByVal lptstrFilename As String, ByVal dwHandle As Long, ByVal dwLen As Long, lpData As Byte)

GetFileVersionInfo说明

从支持版本标记的一个模块里获取文件版本信息

返回值

GetFileVersionInfo

Long,非零表示成功,零表示失败。会设置GetLastError

参数表

参数 类型及说明

lptstrFilename String,欲从中载入版本信息的一个文件的名字

dwHandle Long,win32中未用

GetFileVersionInfo

dwLen Long,由lpData参数指定的字节数组或缓冲区的大小。用GetFileVersionInfoSize函数判断要求的缓冲区长度有多大

lpData Byte,指定一个字节缓冲区的第一个字节。该缓冲区用于装载文件的版本信息

GetFileVersionInfo注解

在win32下不用dwHandle参数

GetFileVersionInfo其他信息

请看vb的api文本查看器中的声明:Declare Function GetFileVersionInfo Lib "version.dll" Alias "GetFileVersionInfoA" (ByVal lptstrFilename As String, ByVal dwHandle As Long, ByVal dwLen As Long, lpData As Any) As Long

温馨提示:
本文【GetFileVersionInfo】由作者 爱百科 转载提供。 该文观点仅代表作者本人, 自学教育网 信息发布平台,仅提供信息存储空间服务, 若存在侵权问题,请及时联系管理员或作者进行删除。
(c)2008-2025 自学教育网 All Rights Reserved 汕头市灵创科技有限公司
粤ICP备2024240640号-6