Microsoft DirectX 8.0 |
The ILanguageComponentType interface is implemented on LanguageComponentType objects, which define the language of the stream content. Not all streams have a language component.
MethodName Description get_LangID Retrieves the language of the stream content. put_LangID Sets the language of the stream content.
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 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.