Windows Media Player 11 SDK IWMPMedia::isMemberOf 

Windows Media Player SDK banner art

Previous Next

IWMPMedia::isMemberOf

The isMemberOf method retrieves a value indicating whether the specified media item is a member of the specified playlist.

Syntax

  

Parameters

pPlaylist

[in]  Pointer to an IWMPPlaylist interface.

pvarfIsMemberOf

[out]  Pointer to a VARIANT_BOOL that indicates whether the item is a member of the playlist.

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 cannot check playlists retrieved through the MediaCollection object. To test whether a media item is a member of a particular named playlist, retrieve the playlist collection with the IWMPCore::get_playlistCollection method. Once you retrieve the collection, retrieve the individual playlist by calling the IWMPPlaylistCollection::getByName method.

Before calling this method, you must have read 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