WMRMRestrictions.GetInclusionList

banner art

Previous Next

WMRMRestrictions.GetInclusionList

The GetInclusionList method retrieves a string representing the inclusion list you have defined.

Syntax

  String = WMRMRestrictions
  .GetInclusionList

Parameters

This method takes no parameters.

Return Values

If the method succeeds, it returns a String containing the inclusion list. If it fails, it returns a number in the error object.

Remarks

An inclusion list specifies additional DRM technologies you want to allow for transcription. The inclusion list is defined per license. For more information, see Exporting Windows Media DRM Content to Other Content Protection Systems.

Example Code

'Add DRM technologies to the inclusion list.
Dim RestrictObj              ' WMRMRestrictions object
Dim varInclusionList         ' Inclusion list
Set RestrictObj = Server.CreateObject("WMRMObjs.WMRMRestrictions")
Call RestrictObj.AddInclusion("{5B888AAC-5761-4201-959E-62B9EA9417CB5}")
Call RestrictObj.AddInclusion("{5B888AAC-5761-4201-959E-62B9EA9417CF6}")
varInclusionList = RestrictObj.GetInclusionList

' Generate the license.
Dim LicenseObj               ' WMRMLicGen object
Set LicenseObj = Server.CreateObject("WMRMObjs.WMRMLicgen")
LicenseObj.KeyID = LicenseKID
LicenseObj.SetKey "", LicenseKey
LicenseObj.Priority = 10
LicenseObj.Rights = RightsString
LicenseObj.ClientInfo = varClientInfo
LicenseObj.BindToPubKey = ContentServerPubKey
LicenseObj.IndividualizedVersion = IndiVersion

' Add the inclusion list to the license.
LicenseObj.SetInclusionList(varInclusionList)

' Continue generating the license.

Requirements

Version: Windows Media Rights Manager 10.1 SDK or later

Reference: wmrmobjs 1.0 Type Library

Library: wmrmobjs.dll

Platform: Windows Server 2003

See Also

Previous Next

© 2007 Microsoft Corporation. All rights reserved.