TypeLib 表TypeLib Table

TypeLib 表包含需要放置在类型库的注册表注册中的信息。The TypeLib table contains the information that needs to be placed in the registry registration of type libraries.

TypeLib 表包含以下列。The TypeLib table has the following columns.

Column 类型Type Key NullableNullable
LibIDLibID GUIDGUID YY NN
语言Language 整数Integer YY NN
组件_Component_ 标识符Identifier YY NN
版本Version DoubleIntegerDoubleInteger NN YY
描述Description 文本Text NN YY
Directory_Directory_ 标识符Identifier NN YY
功能_Feature_ 标识符Identifier NN NN
成本Cost DoubleIntegerDoubleInteger NN YY

Columns

LibIDLibID

标识库的 GUID。The GUID that identifies the library.

语言Language

类型库的语言。The language of the type library. 此值必须为非负数。This must be a non-negative number.

组件_Component_

外部键进入 组件表的第一列。External key into the first column of the Component table. 此列标识属于功能的组件,该组件的 _ 密钥文件是要注册的类型库。This column identifies the component belonging to Feature_ whose key file is the type library being registered.

版本Version

这是库的版本。This is the version of the library. 主要和次要版本以四字节整数值进行编码。The major and minor versions are encoded in the four byte integer value. 次版本低于8位。The minor version is in the lower eight bits. 主版本在中间十六位。The major version is in the middle sixteen bits.

2008Description

库的可本地化说明。A localizable description of the library.

文件夹_Directory_

外部键到 目录表的第一列中。External key into the first column of the Directory table. 此列标识类型库的帮助路径。This column identifies the Help path for the type library. 此列在广告期间将被忽略。This column is ignored during advertising.

具有_Feature_

外部键到 功能表的第一列中。External key into the first column of the Feature table. 此列指定必须安装才能使类型库正常运行的功能。This column specifies the feature that must be installed for the type library to be operational.

低廉Cost

与注册类型库相关联的成本(以字节为单位)。The cost associated with the registration of the type library in bytes. 此值必须为非负数或 null。This must be a non-negative number or null.

备注Remarks

执行 RegisterTypeLibraries 操作UnregisterTypeLibraries 操作 时,将引用此表。This table is referred to when the RegisterTypeLibraries action or the UnregisterTypeLibraries action is executed.

安装程序将所有类型库注册信息写入 HKEY _ 本地 _ 计算机 (hklm) 注册表位置。The installer writes all type library registration information into the HKEY_LOCAL_MACHINE (HKLM) registry location. 即使对于每用户安装也是如此。This is the case even for per-user installations. 类型库无法在 (HKCU) 的每个用户位置中注册。Type libraries cannot be registered in per-user locations (HKCU).

强烈建议安装包作者不要使用 TypeLib 表。Installation package authors are strongly advised against using the TypeLib table. 相反,它们应使用 注册表 表来注册类型库。Instead, they should register type libraries by using the Registry table. 避免自行注册的原因包括:Reasons for avoiding self registration include:

  • 如果使用 TypeLib 表的安装失败并且必须回滚,则回滚可能不会将计算机还原到回滚之前存在的相同状态。If an installation using the TypeLib table fails and must be rolled back, the rollback may not restore the computer to the same state that existed prior to the rollback. 回退前,在回滚之前注册的类型库可能无法注册。Type libraries registered prior to rollback may not be registered after rollback.

验证Validation

ICE03ICE03
ICE06ICE06
ICE19ICE19
ICE32ICE32