Microsoft DirectX 8.1 (C++)

IDvdInfo2::GetDVDTextLanguageInfo

The GetDVDTextLanguageInfo method retrieves the information for the specified text string language block.

Syntax

HRESULT GetDVDTextLanguageInfo(
  ULONG ulLangIndex,
  ULONG *pulNumOfStrings,
  LCID pLangCode,
  DVD_TextCharSet *pbCharacterSet
);

Parameters

ulLangIndex

[in] Index specifying the language block. See Remarks.

pulNumOfStrings

[out] Pointer to a variable of type ULONG that receives the number of strings for the specified language block.

pLangCode

[out] Pointer to a variable of type LCID that represents the language in which the text is written.

pbCharacterSet

[out] Pointer to a DVD_TextCharSet enumeration that receives a value indicating which character set is used for the specified language.

Return Values

Returns one of the following HRESULT values.

Return code Description
S_OK Success.
E_POINTER Invalid argument.
E_UNEXPECTED An unexpected internal error occurred.

Remarks

Call GetDVDTextNumberOfLanguages to set up the index of all the available text languages for menus and subpictures. Then, for each index entry, call GetDVDTextLanguageInfo to retrieve the information for that particular language (number of strings, language code, character set).

See Also