Share via


Windows Media Player 11 SDK IWMPMediaCollection::setDeletedĀ 

Windows Media Player SDK banner art

Previous Next

IWMPMediaCollection::setDeleted

The setDeleted method moves the specified media item to the deleted items folder.

Syntax

  

Parameters

pItem

[in]  Pointer to an IWMPMedia interface for the item to be moved.

varfIsDeleted

[in]  Specifies whether the item should be moved. This value must always be true.

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 does not remove files from the user's computer.

Before calling this method, you must have read access to the library. For more information, see Library Access.

Windows Media Player 10 Mobile: This method always returns E_INVALIDARG.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next