DRM_LICENSE_STATE_CATEGORY enumeration (Drmexternals.h)

[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_LICENSE_STATE_CATEGORY enumeration type defines the categories for DRM license strings that are displayed to the user.

Syntax

typedef enum DRM_LICENSE_STATE_CATEGORY { 
  WM_DRM_LICENSE_STATE_NORIGHT                    = 0,
  WM_DRM_LICENSE_STATE_UNLIM,
  WM_DRM_LICENSE_STATE_COUNT,
  WM_DRM_LICENSE_STATE_FROM,
  WM_DRM_LICENSE_STATE_UNTIL,
  WM_DRM_LICENSE_STATE_FROM_UNTIL,
  WM_DRM_LICENSE_STATE_COUNT_FROM,
  WM_DRM_LICENSE_STATE_COUNT_UNTIL,
  WM_DRM_LICENSE_STATE_COUNT_FROM_UNTIL,
  WM_DRM_LICENSE_STATE_EXPIRATION_AFTER_FIRSTUSE
} ;

Constants

WM_DRM_LICENSE_STATE_NORIGHT

Indicates the string will take the form "Playback not permitted."

WM_DRM_LICENSE_STATE_UNLIM

Indicates the string will take the form "Playback unlimited."

WM_DRM_LICENSE_STATE_COUNT

Indicates the string will take the form "Playback valid 5 times."

WM_DRM_LICENSE_STATE_FROM

Indicates the string will take the form "Playback valid from 7/12/00."

WM_DRM_LICENSE_STATE_UNTIL

Indicates the string will take the form "Playback valid until 7/12/00."

WM_DRM_LICENSE_STATE_FROM_UNTIL

Indicates the string will take the form "Playback valid from 5/12 to 9/12."

WM_DRM_LICENSE_STATE_COUNT_FROM

Indicates the string will take the form "Playback valid 5 times from 5/12 to 9/12."

WM_DRM_LICENSE_STATE_COUNT_UNTIL

Indicates the string will take the form "Playback valid 5 times until 7/12/00."

WM_DRM_LICENSE_STATE_COUNT_FROM_UNTIL

Indicates the string will take the form "Playback valid 5 times from 5/12 to 9/12."

WM_DRM_LICENSE_STATE_EXPIRATION_AFTER_FIRSTUSE

Indicates the string will take the form "Playback valid for 24 hours from first use."

Remarks

This enumeration indicates the category for each possible output string to be displayed. It is a member of the DRM_LICENSE_STATE_DATA structure.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Version
Windows Media Format 7 SDK, or later versions of the SDK
Header
Drmexternals.h

See also

Enumeration Types