Share via


Windows Media Player 11 SDK IWMPStringCollection2::getItemInfo 

Windows Media Player SDK banner art

Previous Next

IWMPStringCollection2::getItemInfo

The getItemInfo method retrieves the string corresponding to the specified string collection item index and name.

Syntax

  HRESULT getItemInfo(
  long  lCollectionIndex,
  BSTR  bstrItemName,
  BSTR*  pbstrValue
);

Parameters

lCollectionIndex

[in]  A long specifying the zero-based index of the string collection item from which to get the attribute.

bstrItemName

[in]  BSTR containing the attribute name.

pbstrValue

[out]  Pointer to a BSTR that receives the string. For attributes whose underlying value is Boolean, it returns the string "true" or "false".

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

To retrieve attributes with multiple values and attributes with complex values, use the getItemInfoByType method.

To use this method, read access to the library is required. For more information, see Library Access.

Windows Media Player 10 Mobile: This method is not supported.

Requirements

Version: Windows Media Player 11.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next