ITypeInfo Interface

This section describes ITypeInfo, an interface typically used for reading information about objects. For example, an object browser tool can use ITypeInfo to extract information about the characteristics and capabilities of objects from type libraries.

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


Type information interfaces are intended to describe the parts of the application that can be called by outside clients, rather than those that might be used internally to build an application.

The ITypeInfo interface provides access to the following:

The type description of an IDispatch interface can be used to implement the interface. For more information, see the description of CreateStdDispatch in Chapter 5, "Dispatch Interface and API Functions."

An instance of ITypeInfo provides various information about the type of an object, and is used in different ways. A compiler can use an ITypeInfo to compile references to members of the type. A type interface browser can use it to find information about each member of the type. An IDispatch implementor can use it to provide automatic delegation of IDispatch calls to an interface.