ITypeLib : IUnknown

This interface provides methods for accessing a library of type descriptions.

At a Glance

Header file: Oaidl.h
Windows CE versions: 2.0 and later

The data that describes a set of objects is stored in a type library. A type library can be a stand-alone binary file (.tlb), a resource in a dynamic link library or executable file (.dll or .exe), or part of a compound document file.

Implemented by Used by Header file name
Oleaut32.dll (32-bit systems)

Typelib.dll (16-bit systems)

Tools that need to access the descriptions of objects contained in type libraries. Oleauto.h

Dispatch.h


The system registry contains a list of all the installed type libraries.

The ITypeLib interface provides methods for accessing a library of type descriptions. This interface supports the following:

Method Description
ITypeLib::FindName Finds occurrences of a type description in a type library. This may be used to verify that a name exists in a type library.
ITypeLib::GetDocumentation Retrieves the library’s documentation string, the complete Help file name and path, and the context identifier for the library Help topic.
ITypeLib::GetLibAttr Retrieves the structure that contains the library’s attributes.
ITypeLib::GetTypeComp Retrieves a pointer to the ITypeComp for a type library. This enables a client compiler to bind to the library’s types, variables, constants, and global functions.
ITypeLib::GetTypeInfo Retrieves the specified type description in the library.
ITypeLib::GetTypeInfoCount Retrieves the number of type descriptions in the library.
ITypeLib::GetTypeInfoOfGuid Retrieves the type description that corresponds to the specified globally unique identifier (GUID).
ITypeLib::GetTypeInfoType Retrieves the type of a type description.
ITypeLib::IsName Indicates whether a passed-in string contains the name of a type or a member described in the library.
ITypeLib::ReleaseTLibAttr Releases the TLIBATTR originally obtained from ITypeLib::GetLibAttr.