Windows Media Player 11 SDK IWMPClosedCaption2::getSAMIStyleName 

Windows Media Player SDK banner art

Previous Next

IWMPClosedCaption2::getSAMIStyleName

The getSAMIStyleName method retrieves the name of a style supported by the current SAMI file.

Syntax

  

Parameters

nIndex

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

pbstrName

[out]  Pointer to a BSTR containing the name of the style as specified in the SAMI file.

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 styles 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