IWMCLibraries::get_Item

banner art

This functionality is expected to be available in Windows Media Player for the next version of Microsoft Windows. At that time, this SDK will be deprecated.

The get_Item method retrieves the specified item in the collection.

Syntax

HRESULT get_Item(
  VARIANT*  Index,
  IWMCLibrary**  ppResult
);

Parameters

Index

[in]  Pointer to a VARIANT that specifies the index. This can be either a number or a string value.

ppResult

[out]  Pointer to a pointer to an IWMCLibrary interface.

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.
DISP_E_MEMBERNOTFOUND The string Index specified does not correspond to any Library name in the collection.
DISP_E_BADINDEX The numeric Index specified is out of range of the collection.

Remarks

None.

Requirements

Library: wmcsci.dll.

Platform: Windows XP Home Edition Service Pack 2 (SP2), Windows XP Professional SP2, Windows XP Media Center Edition SP2, or Windows XP Tablet PC Edition SP2.

See Also