Share via


ITypeLib (Windows Embedded CE 6.0)

1/6/2010

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

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.

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

This interface supports the following:

  • Generalized containment for type information. ITypeLib allows iteration over the type descriptions contained in the library.
  • Global functions and data. A type library can contain descriptions of a set of modules, each of which is the equivalent of a C or C++ source file that exports data and functions. The type library supports compiling references to the exported data and functions.
  • General information, including a user-readable name for the library and help for the library as a whole.

Methods

The following table shows the methods for this interface in alphabetical order. Like all COM interfaces, this interface inherits the methods for the IUnknown interface.

Method Description

ITypeLib::FindName

This method 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

This method retrieves the library's documentation string, the complete Help file name and path, and the context identifier for the library Help topic.

ITypeLib::GetLibAttr

This method retrieves the structure that contains the library's attributes.

ITypeLib::GetTypeComp

This method 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

This method retrieves the specified type description in the library.

ITypeLib::GetTypeInfoCount

This method retrieves the number of type descriptions in the library.

ITypeLib::GetTypeInfoOfGuid

This method retrieves the type description that corresponds to the specified globally unique identifier (GUID).

ITypeLib::GetTypeInfoType

This method retrieves the type of a type description.

ITypeLib::IsName

This method indicates whether a passed-in string contains the name of a type or a member described in the library.

ITypeLib::ReleaseTLibAttr

This method releases the TLIBATTR originally obtained from GetLibAttr.

Requirements

Header oaidl.h, oaidl.idl
Library oleaut32.lib, uuid.lib
Windows Embedded CE Windows CE 2.0 and later

See Also

Reference

Automation Interfaces
ITypeComp
TLIBATTR
IUnknown