WMRMRights.MinimumClientSDKSecurity
The MinimumClientSDKSecurity property specifies and retrieves the minimum security level of the Windows Media Format SDK on which the client application is based. Only applications that meet the required security level can use your packaged files.
Syntax
WMRMRights.MinimumClientSDKSecurity = DWORD
DWORD = WMRMRights.MinimumClientSDKSecurity
Parameters
This property takes no parameters.
Return Values
When getting the value, this property returns a DWORD containing the security level of the Windows Media Format SDK on which the player application must be based. If it fails, it returns E_FAIL.
Remarks
The default value of this property is 0.
Significant security enhancements have been made to Windows Media Format 7.1 SDK. To require player applications to be based on Windows Media Format 7.1 SDK or later, require a MinimumClientSDKSecurity of 3000.
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 = True
RightsObj.AllowPlay = True
RightsObj.BeginDate = "#20050101Z#"
RightsObj.ExpirationDate = "#20051231Z#"
RightsObj.DisableOnClockRollback = True
' Require the player to be based on Windows Media Format 7.1 SDK or later.
RightsObj.MinimumClientSDKSecurity = 3000
' 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