4.8.2 Enumerating on All Types in a Type Library

Building on the previous example, it is assumed that the automation client has the ITypeLib implementation of the automation server. The following pseudocode illustrates how to get type information for all types defined in the type library.

 INPUT: Reference to the ITypeLib server corresponding to the Automation Server
  
 CALL ITypeLib::GetTypeInfoCount and OBTAIN pcTInfo
 COMMENT see Section 3.11.4.1 for information on pcTInfo
 FOR X = 0 to pctInfo -1
     CALL ITypeLib::GetTypeInfo with X and OBTAIN ITypeInfo pointer
 END FOR