大网数据广告活动
安装更新与部署

TypeLib Table

· 52CE 我爱测

The TypeLib table contains the information that needs to be placed in the registry registration of type libraries.

The TypeLib table contains the information that needs to be placed in the registry registration of type libraries.

The TypeLib table has the following columns.

Column Type Key Nullable
LibID GUID Y N
Language Integer Y N
Component_ Identifier Y N
Version DoubleInteger N Y
Description Text N Y
Directory_ Identifier N Y
Feature_ Identifier N N
Cost DoubleInteger N Y

Columns

LibID

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. The minor version is in the lower eight bits. The major version is in the middle sixteen bits.

Description

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. This must be a non-negative number or null.

Remarks

This table is referred to when the RegisterTypeLibraries action or the UnregisterTypeLibraries action is executed.

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. Type libraries cannot be registered in per-user locations (HKCU).

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:

  • 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

ICE03
ICE06
ICE19
ICE32

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。