WMRMRights.AllowTransferToNonSDMI
The AllowTransferToNonSDMI property specifies and retrieves a Boolean value that indicates whether the license permits the content to be transferred to portable devices or portable media that are not SDMI-compliant, and support Portable Device DRM version 1 or Windows Media DRM 10 for Portable Devices.
Syntax
WMRMRights.AllowTransferToNonSDMI = Boolean
Boolean = WMRMRights.AllowTransferToNonSDMI
Parameters
This property takes no parameters.
Return Values
If the property succeeds, it returns a Boolean value indicating whether the content can be transferred. If it fails, it returns E_FAIL, 0x80004005.
Remarks
The default value of this property is 0 (false).
In a purchase model, the AllowTransferToSDMI and AllowTransferToNonSDMI rights are typically used for allowing content to be transferred to devices.
However, in a subscription model, the AllowCopy right is usually enabled, which requires the use of devices based on Windows Media DRM 10 for Portable Devices.
Example Code
' Before you can issue a license, you must specify the consumer's
' rights and set them in the WMRMLicGen object.
' Declare objects.
Dim sRights
Dim RightsObj
Dim LicGenObj
' Create objects.
Set RightsObj = Server.CreateObject("Wmrmobjs.WMRMRights")
Set LicGenObj = Server.CreateObject("Wmrmobjs.WMRMLicGen")
' Reset the WMRMRights object.
RightsObj.Reset()
' Specify the rights that will be granted to the consumer.
RightsObj.AllowBackupRestore = False
RightsObj.AllowPlay = True
RightsObj.AllowTransferToSDMI = True
RightsObj.AllowTransferToNonSDMI = True
RightsObj.TransferCount = 10
RightsObj.BeginDate = "#20050101Z#"
RightsObj.ExpirationDate = "#20051231Z#"
RightsObj.DisableOnClockRollback = True
' Retrieve the string containing the rights.
sRights = RightsObj.GetAllRights()
' Set the rights in the license generator.
LicGenObj.Rights = sRights
' Continue the license issuing process.
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