Share via


Windows Media Player 11 SDK IWMPClosedCaption2::getSAMILangName 

Windows Media Player SDK banner art

Previous Next

IWMPClosedCaption2::getSAMILangName

The getSAMILangName method retrieves the name of a language supported by the current SAMI file.

Syntax

  

Parameters

nIndex

[in]  long containing the index of the language name to retrieve.

pbstrName

[out]  Pointer to a BSTR containing the name.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.

Remarks

The languages in a SAMI file are indexed in the order shown in the file, starting with zero.

This method cannot be used until a digital media file is open.

Windows Media Player 10 Mobile: This method always retrieves a BSTR containing an empty string.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next