The GetTypeInfo method provides access to the Type description information exposed by the automation server.

 HRESULT GetTypeInfo(
   [in] UINT iTInfo,
   [in] LCID lcid,
   [out] ITypeInfo** ppTInfo
 );

iTInfo: MUST be 0.

lcid: MUST equal the locale ID for the Type description information to be retrieved.

ppTInfo: MUST be set to reference an instance of an ITypeInfo server that corresponds to the default nonsource interface of the coclass implementing IDispatch (see section 2.2.49.8). MUST refer to the partner dispinterface if the default nonsource interface is a dual interface. MUST be set to NULL if the coclass does not specify a default nonsource interface.

Return Values: The method MUST return information in an HRESULT data structure, defined in [MS-ERREF] section 2.1. The severity bit in the structure identifies the following conditions: