Contents Previous Page Next Page
IProvideClassInfo3::GetClassInfoLocale

Returns a pointer to the ITypeInfo interface for the objectÆs type information. The type information for an object corresponds to the objectÆs coclass entry in a type library. This method also uses a locale identifier (LCID) to specify the locale so that locale-specific type information is returned. This method is similar to IProvideClassInfo::GetClassInfo.

HRESULT GetClassInfoLocale(

    ITypeInfo **
ppTypeInfo,      // Receives an indirect pointer to the ITypeInfo interface        
                                                                                                   
    LCID lcid                    // Specifies the locale identifier                                
                                                                                                   
   );                                                                                              
                                                                                                   

Parameters

ppTypeInfo

[out] The address of the callerÆs ITypeInfo * variable in which to store the objectÆs type information. The caller is responsible for calling ITypeInfo::Release on the returned pointer if this method returns successfully.

lcid

[in] Specifies the locale.

Return Values

S_OK

The type information was successfully returned.

E_POINTER

The address in ppTypeInfo is not valid. For example, it may be NULL.

E_UNEXPECTED

An unexpected error occurred.

E_OUTOFMEMORY

The type information could not be retrieved.

Remarks

The caller is responsible for calling ITypeInfo::Release when the returned interface pointer is no longer needed.