WMRMRights.PMAppSecurity
The PMAppSecurity property specifies and retrieves the security level for content that is being transferred to portable devices or portable media.
This right has been deprecated and replaced by MinimumSecurityLevel and MinimumClientSDKSecurity.
Syntax
WMRMRights.PMAppSecurity = DWORD
DWORD = WMRMRights.PMAppSecurity
Parameters
This property takes no parameters.
Return Values
If the property succeeds, it returns a DWORD containing the security level. If it fails, it returns E_FAIL, 0x80004005.
Remarks
Each license contains a value that indicates the minimum security value required of the playback device. The default value is 1000. The following table shows general guidelines for the minimum application security levels required to play Windows Media files.
Security level | Type of content |
150 | Devices that support Windows Media-based content but not protected content |
1,000 (default) | Windows Media Player for Pocket PC or SmartPhone |
2,000 | 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")
' 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.PMAppSecurity = 1000
' 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