TypeLib element
Register a type library (TypeLib). Please note that in order to properly use this non-advertised, you will need use this element with Advertise=‘no’ and also author the appropriate child Interface elements by extracting them from the type library itself.
Attributes
Advertise
yesnoValue of ‘yes’ will create a row in the TypeLib table. Value of ‘no’ will create rows in the Registry table. The default value is ‘no’.
Control
yesnoValue of ‘yes’ means the type library describes controls, and should not be displayed in type browsers intended for nonvisual objects. This attribute can only be set if Advertise=‘no’.
Cost
integerThe cost associated with the registration of the type library in bytes. This attribute cannot be set if Advertise=‘no’.
Description
stringThe localizable description of the type library.
HasDiskImage
yesnoValue of ‘yes’ means the type library exists in a persisted form on disk. This attribute can only be set if Advertise=‘no’.
HelpDirectory
stringThe identifier of the Directory element for the help directory.
HelpSubirectory
stringThis attribute defines one or more directories below the directory referenced by the HelpDirectory attribute for the typelib’s help directory.
Hidden
yesnoValue of ‘yes’ means the type library should not be displayed to users, although its use is not restricted. Should be used by controls. Hosts should create a new type library that wraps the control with extended properties. This attribute can only be set if Advertise=‘no’.
Id
Guid requiredThe GUID that identifes the type library.
Language
Integer requiredThe language of the type library. This must be a non-negative integer.
MajorVersion
IntegerThe major version of the type library. The value should be an integer from 0 - 255.
MinorVersion
IntegerThe minor version of the type library. The value should be an integer from 0 - 255.
ResourceId
IntegerThe resource id of a typelib. The value is appended to the end of the typelib path in the registry.
Restricted
yesnoValue of ‘yes’ means the type library is restricted, and should not be displayed to users. This attribute can only be set if Advertise=‘no’.