DRM_Rights

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The DRM_Rights property specifies the rights that the application will require in the next attempt to open a protected file.

Global Constant

g_wszWMDRM_Rights

Data Type

WMT_TYPE_STRING

Remarks

This is a read-write property that is retrieved using IWMDRMReader::GetDRMProperty and set using either IWMDRMReader::SetDRMProperty or IWMDRMWriter::SetDRMAttribute.

The following table lists the supported rights.

Right String literal Description
g_wszWMDRM_RIGHT_BACKUP "Backup" Right to back up the license.
g_wszWMDRM_RIGHT_COLLABORATIVE_PLAY "CollaborativePlay" Right to play the file as part of a collaborative playlist.
g_wszWMDRM_RIGHT_COPY "Copy" Right to copy the file to a device. This right supersedes the older copy rights (g_wszWMDRM_RIGHT_COPY_TO_CD, g_wszWMDRM_RIGHT_COPY_TO_NON_SDMI_DEVICE, and g_wszWMDRM_RIGHT_COPY_TO_SDMI_DEVICE).
g_wszWMDRM_RIGHT_COPY_TO_CD "Print.redbook" Right to copy the file to a CD (Red Book format).In Windows Media DRM 10, this right is replaced by g_wszWMDRM_RIGHT_COPY.
g_wszWMDRM_RIGHT_COPY_TO_NON_SDMI_DEVICE "Transfer.NONSDMI" Right to copy the file to a non-SDMI device.In Windows Media DRM 10, this right is replaced by g_wszWMDRM_RIGHT_COPY.
g_wszWMDRM_RIGHT_COPY_TO_SDMI_DEVICE "Transfer.SDMI" Right to copy the file to an SDMI-compliant device.In Windows Media DRM 10, this right is replaced by g_wszWMDRM_RIGHT_COPY.
g_wszWMDRM_RIGHT_PLAYBACK "Play" Right to play the media file.

This property contains a wide-character string of one or more rights separated by semicolons, for example: L"Playback;Copy;CollaborativePlay".

See also

DRM Properties