Windows Media Player 11 SDK IWMPStringCollection::itemĀ
Previous | Next |
IWMPStringCollection::item
The item method retrieves the string at the given index.
Syntax
Parameters
lIndex
[in] long containing the index.
pbstrString
[out] Pointer to a BSTR containing the string.
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 IWMPStringCollection interface is used to retrieve the set of values available for an attribute. For example, the IWMPMediaCollection::getAttributeStringCollection method can be used to retrieve a pointer to an IWMPStringCollection interface representing all the values for the Genre attribute within the Audio media type. The item method can then be used to iterate through all of the possible values for the Genre attribute.
To use this method, read access to the library is required. For more information, see Library Access.
Requirements
Version: Windows Media Player 9 Series or later.
Header: Include wmp.h.
Library: Use wmp.dll.
See Also
- IWMPMediaCollection::getAttributeStringCollection
- IWMPSettings2::get_mediaAccessRights
- IWMPSettings2::requestMediaAccessRights
- IWMPStringCollection Interface
Previous | Next |