Microsoft DirectX 9.0

IDvdInfo2::GetDefaultAudioLanguage

The GetDefaultAudioLanguage method retrieves the default audio language.

Syntax

HRESULT GetDefaultAudioLanguage(
  LCID *pLanguage,
  DVD_AUDIO_LANG_EXT *pAudioExtension
);

Parameters

pLanguage

[out] Pointer to an LCID that receives the default language information.

pAudioExtension

Pointer to a variable of type DVD_AUDIO_LANG_EXT that receives a value indicating the default DVD audio language extension.

Return Values

Returns one of the following HRESULT values.

Return code Description
S_OK Success.
E_INVALIDARG Invalid argument.
E_POINTER The pLanguage parameter is NULL.
E_UNEXPECTED The DVD Navigator is not initialized.
VFW_E_DVD_INVALIDDOMAIN DVD Navigator is not in a valid domain.

See Also