次の方法で共有


WMRM_RESTRICTION_TYPE

banner art

Previous Next

WMRM_RESTRICTION_TYPE

The WMRM_RESTRICTION_TYPE enumeration type defines the types of output for playback and copy protection levels.

Syntax

  typedef enum WMRM_RESTRICTION_TYPE{
    WMRM_UNCOMPRESSEDDIGITALVIDEO = 1,
    WMRM_COMPRESSEDDIGITALVIDEO = 2,
    WMRM_ANALOGVIDEO = 3,
    WMRM_COMPRESSEDDIGITALAUDIO = 4,
    WMRM_UNCOMPRESSEDDIGITALAUDIO = 5,
    WMRM_COPY = 6
};

Members

WMRM_UNCOMPRESSEDDIGITALVIDEO

Specifies uncompressed digital video output.

WMRM_COMPRESSEDDIGITALVIDEO

Specifies compressed digital video output.

WMRM_ANALOGVIDEO

Specifies analog video output.

WMRM_COMPRESSEDDIGITALAUDIO

Specifies compressed digital audio output.

WMRM_UNCOMPRESSEDDIGITALAUDIO

Specifies uncompressed digital audio output.

WMRM_COPY

Specifies copied output.

Example Code

' Set playback and copy output protection levels.
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

' Set the restrictions in the WMRMRights object.
RightsObj.PlayRestrictions = PlayRestrictions
RightsObj.CopyRestrictions = CopyRestrictions

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.