Windows Media Player 11 SDK IWMPPlaylist::insertItem
Previous | Next |
IWMPPlaylist::insertItem
The insertItem method adds a media item at the specified location in the playlist.
Syntax
Parameters
lIndex
[in] long containing the index at which this method will add the item.
pIWMPMedia
[in] Pointer to an IWMPMedia interface for the inserted item.
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
All items after the inserted item will have their index numbers increased by one.
Before calling this method, you must have full access to the library. 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
Previous | Next |