Partager via


WMRMLicGen.SetInclusionList

banner art

Previous Next

WMRMLicGen.SetInclusionList

The SetInclusionList method adds an inclusion list to a license.

Syntax

  WMRMLicGen
  .SetInclusionList(
  pXML
  )

Parameters

pXML

[in] String containing the XML that contains the inclusion list you have defined, which is retrieved using the WMRMRestrictions.GetInclusionList method.

Return Values

If the property succeeds, it returns S_OK. If it fails, it returns a number in the error object.

Remarks

An inclusion list specifies additional DRM technologies you want to support for transcription and is created per license. For more information about transcription and inclusions lists, 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.