WMRMRights.Playcount
Previous | Next |
WMRMRights.Playcount
The Playcount property specifies and retrieves the number of times that the license permits the content to be played.
Syntax
WMRMRights. Playcount = DWORD DWORD = WMRMRights. Playcount
Parameters
This property takes no parameters.
Return Values
If the property succeeds, it returns a DWORD containing the number of times the content can be played. If it fails, it returns a number in the error object.
Return code | Description |
0x80004005 | An unspecified error occurred. |
0x80070057 | The specified parameter is not valid. |
Remarks
By default, this property is not set and the license permits unlimited play. If the Playcount property is set, then the AllowBackupRestore property defaults to False. The Playcount property must be greater than zero.
Example Code
Requirements
Version: Windows Media Rights Manager 7 SDK or later
Reference: wmrmobjs 1.0 Type Library
Library: wmrmobjs.dll
Platform: Windows Server 2003
See Also
Previous | Next |