WMRMRights.CopyCount
Previous | Next |
WMRMRights.CopyCount
The CopyCount property specifies and retrieves the number of times that content can be copied using the AllowCopy right.
Syntax
WMRMRights.CopyCount = DWORD DWORD = WMRMRights.CopyCount
Parameters
This property takes no parameters.
Return Values
If the property succeeds, it returns a DWORD indicating the number of times content can be copied. If it fails, it returns E_FAIL.
Remarks
By default, this property is not set.
Valid values include:
- 0 – 249: The number of copies that can be made from the computer.
- 250-255: Reserved for future use.
Example Code
' Set copy restrictions. Set RestrictObj = Server.CreateObject("WMRMObjs.WMRMRestrictions") Call RestrictObj.AddRestriction(6, 400) RightsObj.CopyRestrictions = RestrictObj.GetRestrictions
Requirements
Version: Windows Media Rights Manager 10 SDK or later
Reference: wmrmobjs 1.0 Type Library
Library: wmrmobjs.dll
Platform: Windows Server 2003
See Also
Previous | Next |