Windows Media Player 11 SDK IWMPPlaylist::get_attributeNameĀ 

Windows Media Player SDK banner art

Previous Next

IWMPPlaylist::get_attributeName

The get_attributeName method retrieves the name of an attribute specified by an index.

Syntax

  

Parameters

lIndex

[in]  long containing the index.

pbstrAttributeName

[out]  Pointer to a BSTR containing the attribute 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 number of attributes is retrieved by the get_attributeCount method.

The pbstAttributeName string can be supplied to the setItemInfo or getItemInfo methods in order to specify or retrieve a value for the named attribute.

Before calling this method, you must have read access to the library. For more information, see Library Access.

For information about the attributes supported by Windows Media Player, see the Windows Media Player Attribute Reference.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next