Microsoft DirectX 8.0

ILanguageComponentType Interface

The ILanguageComponentType interface is implemented on LanguageComponentType objects, which define the language of the stream content. Not all streams have a language component.

MethodNameDescription
get_LangIDRetrieves the language of the stream content.
put_LangIDSets the language of the stream content.

ILanguageComponentType::get_LangID

ILanguageComponentType Interface

Retrieves the LCID that identifies the language.

Syntax

HRESULT get_LangID(
    short* LangID
    );

Parameters

LangID
[out, retval] Pointer to a variable of type short that receives the LCID.

Return Value

Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.

Remarks

LangID is a Win32 LANGID. There is a separate language ID in the base IComponent that defines the language of the description.

ILanguageComponentType::put_LangID

ILanguageComponentType Interface

Specifies the LCID that identifies the language

Syntax

HRESULT put_LangID(
    short LangID
    );

Parameters

LangID
[in] Variable of type short that specifies the LCID.

Return Value

Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.