Windows Media Player 11 SDK IWMPMedia::isReadOnlyItemÂ
Previous | Next |
IWMPMedia::isReadOnlyItem
The isReadOnlyItem method retrieves a value indicating whether the attributes of the specified media item can be edited.
Syntax
Parameters
bstrItemName
[in] BSTR containing the item name.
pvarfIsReadOnly
[out] Pointer to a VARIANT_BOOL that specifies whether the attributes are read-only.
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
If an attribute is read-only, then it cannot be set with the setItemInfo method. Note that this method may return different values for a particular attribute when used with different versions of Windows Media Player.
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 retrieves a VARIANT_BOOL set to TRUE.
Requirements
Version: Windows Media Player 9 Series or later.
Header: Include wmp.h.
Library: Use wmp.dll.
See Also
Previous | Next |