Share via


Windows Media Player 11 SDK IWMPControls::put_currentItemĀ 

Windows Media Player SDK banner art

Previous Next

IWMPControls::put_currentItem

The put_currentItem method specifies the current media item.

Syntax

  

Parameters

pIWMPMedia

[in]  Pointer to an IWMPMedia 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.

Remarks

This method works only with items in the playlist. Calling put_currentItem with a reference to a saved media item is not supported.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next