Share via


Windows Media Player 11 SDK IWMPStringCollection2::getAttributeCountByType 

Windows Media Player SDK banner art

Previous Next

IWMPStringCollection2::getAttributeCountByType

The getAttributeCountByType method retrieves the number of attributes associated with the specified string collection index, attribute name, and language.

Syntax

  HRESULT getAttributeCountByType(
  long  lCollectionIndex,
  BSTR  bstrType,
  BSTR  bstrLanguage,
  long*  plCount
);

Parameters

lCollectionIndex

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

bstrType

[in]  BSTR containing the name of the attribute.

bstrLanguage

[in]  BSTR containing the language. If the value is set to null or "" (empty string), the current locale string is used. Otherwise, the value must be a valid RFC 1766 language string such as "en-us".

plCount

[out]  Pointer to a long that receives the count.

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

This method is used to determine the number of attributes corresponding to a particular attribute name for a given StringCollection item. Index numbers can then be passed to the fourth parameter of 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