Share via


WMRMRestrictions.AddExtension

banner art

Previous Next

WMRMRestrictions.AddExtension

The AddExtension method specifies the extended technologies that are allowed to play protected analog video content.

Syntax

  WMRMRestrictions.AddExtension(guid, byteVal)

Parameters

guid

[in] A String specifying the GUID of the extended technology to add. For information about the current GUIDs for extended technologies, see the WMRM SDK Compliance Rules that accompanied your license agreement from Microsoft.

byteVal

[in] Optional. This value can be used to provide additional configuration data that is specific to the technology you are adding. For more information about possible values, see the WMRM SDK Compliance Rules that accompanied your license agreement from Microsoft. If this value is not specified the default of 0 is used.

Return Values

This method does not return a value.

Remarks

Due to licensing restrictions, certain technologies, categorized as extended technologies, must be explicitly enabled.

Example Code

' Set playback and copy restrictions.
Dim RestrictObj              ' WMRMRestrictions object
Dim PlayRestrictions         ' Playback restrictions
Dim CopyRestrictions         ' Copy restrictions

Set RestrictObj = Server.CreateObject("WMRMObjs.WMRMRestrictions")

' Set output protection levels for playback.  
Call RestrictObj.AddRestriction(1, 300)  ' Uncompressed digital video
Call RestrictObj.AddRestriction(2, 500)  ' Compressed digital video
Call RestrictObj.AddRestriction(3, 200)  ' Analog video
Call RestrictObj.AddRestriction(4, 200)  ' Compressed digital audio
Call RestrictObj.AddRestriction(5, 200)  ' Uncompressed digital audio

' Add an extended technology for playing analog video.
Call RestrictObj.AddExtension("{C3FD11C6-F8B7-4d20-B008-1DB17D61F2DA}", 1)

' Get the playback restrictions string.
PlayRestrictions = RestrictObj.GetRestrictions

' Set output protection levels for copying.  
Set RestrictObj = Nothing
Set RestrictObj = Server.CreateObject("WMRMObjs.WMRMRestrictions")

Call RestrictObj.AddRestriction(6, 400)    ' Copied output.

' Get the copy restrictions string.
CopyRestrictions = RestrictObj.GetRestrictions

Requirements

Version: Windows Media Rights Manager 10 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.