?? verqueryvalue.htm
字號:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<style><!--
body,table {font-family:"宋體"; font-size: 9pt; line-height:11pt;}
a {text-decoration:none} a:hover {color:red;text-decoration:underline}
--></style>
<title>VerQueryValue</title>
</head>
<body link="#FF0000" vlink="#FF0000" alink="#FF0000" bgcolor=#E2DEE9>
<div align="center"><center>
<table border="0" width="100%" height="22" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="16"><a name="VerQueryValue">VerQueryValue</a></td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
<tr>
<td width="101%" colspan="3">VB聲明</td>
</tr>
<tr>
<td width="101%" colspan="3">Declare Function VerQueryValue& Lib
"version.dll" Alias "VerQueryValueA" (pBlock As Byte, ByVal lpSubBlock
As String, lplpBuffer As Long, puLen As Long)</td>
</tr>
<tr>
<td width="101%" colspan="3">說明</td>
</tr>
<tr>
<td width="101%" colspan="3">這個函數用于從版本資源中獲取信息。調用這個函數前,必須先用<a
href="GetFileVersionInfo.htm" tppabs="http://www.gxbcts.com/airfly/api/papi/GetFileVersionInfo.htm">GetFileVersionInfo</a>函數獲取版本資源信息。這個函數會檢查資源信息,并將需要的數據復制到一個緩沖區里</td>
</tr>
<tr>
<td width="101%" colspan="3">返回值</td>
</tr>
<tr>
<td width="101%" colspan="3">Long,TRUE(非零)表示成功,如請求的信息不存在,或pBlock不屬于有效版本信息,那就返回一個零</td>
</tr>
<tr>
<td width="101%" colspan="3">參數表</td>
</tr>
<tr>
<td width="25%">參數</td>
<td width="76%" colspan="2">類型及說明</td>
</tr>
<tr>
<td width="25%">pBlock</td>
<td width="76%" colspan="2">Byte,指定一個內存塊第一個字節的地址。這個內存塊包含了由<a
href="GetFileVersionInfo.htm" tppabs="http://www.gxbcts.com/airfly/api/papi/GetFileVersionInfo.htm">GetFileVersionInfo</a>函數取回的版本數據信息</td>
</tr>
<tr>
<td width="25%" rowspan="4">lpSubBlock</td>
<td width="76%" colspan="2">String,下述值之一:</td>
</tr>
<tr>
<td width="37%">"\"</td>
<td width="38%">獲取文件的VS_FIXEDFILEINFO結構</td>
</tr>
<tr>
<td width="37%">"\VarFileInfo\Translation"</td>
<td width="38%">獲取文件的翻譯表</td>
</tr>
<tr>
<td width="37%">"\StringFileInfo\...."</td>
<td width="38%">獲取文件的字串信息。參考注解</td>
</tr>
<tr>
<td width="25%">lplpBuffer</td>
<td width="76%" colspan="2">Long,指定一個Long變量的地址,該變量用于裝載一個緩沖區的地址。請求的版本信息最終會裝載到那個緩沖區里</td>
</tr>
<tr>
<td width="25%">puLen</td>
<td width="76%" colspan="2">Long,指定由lplpBuffer參數引用的數據值的長度,以字節為單位</td>
</tr>
<tr>
<td width="101%" colspan="3">注解</td>
</tr>
<tr>
<td width="101%" colspan="3"><p align="left">如lplpBuffer參數為"\StringFileInfo\....",緩沖區里就會載入一個整數數組。每一對整數都代表一種語言和代碼頁,它們描繪了可用的字串信息。通過用下面這三個部分指定一個字串,從而獲得StringFileInfo字串數據:"\StringFileInfo\languagecodepage\stringname",其中languagecodepage(語言代碼頁)是采用字串形式的一個8字符十六進制數字。如翻譯表中的語言代碼頁條目是&H04090000,那么這個字串就應該是"04090000"。stringname(字串名)指定的是一個字串名。這個參數的一個例子如下:<br>
"\StringFileInfo\04090000\CompanyName"</td>
</tr>
<tr>
<td width="101%" colspan="3">其他</td>
</tr>
<tr>
<td width="101%" colspan="3">從vb的api文本查看器復制的聲明如下:<br>
Declare Function VerQueryValue Lib "version.dll" Alias "VerQueryValue"
(pBlock As Any, ByVal lpSubBlock As String, ByVal lplpBuffer As Long, puLen As Long) As
Long</td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><p align="right"><a href="#VerQueryValue">Top</a></td>
</tr>
</table>
</center></div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -