DRM_ATTR_DATATYPE enumeration

[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_ATTR_DATATYPE enumeration defines the data types used for DRM attributes and properties.

Syntax

typedef enum DRM_ATTR_DATATYPE { 
  DRM_TYPE_DWORD   = 0,
  DRM_TYPE_STRING  = 1,
  DRM_TYPE_BINARY  = 2,
  DRM_TYPE_BOOL    = 3,
  DRM_TYPE_QWORD   = 4,
  DRM_TYPE_WORD    = 5,
  DRM_TYPE_GUID    = 6
} ;

Constants

DRM_TYPE_DWORD

The property is a 4-byte DWORD value.

DRM_TYPE_STRING

The property is a null-terminated Unicode string.

DRM_TYPE_BINARY

The property is an array of bytes.

DRM_TYPE_BOOL

The property is a 4-byte Boolean value.

DRM_TYPE_QWORD

The property is an 8-byte QWORD value.

DRM_TYPE_WORD

The property is a 2-byte WORD value.

DRM_TYPE_GUID

The property is a 128-bit (6-byte) GUID value.

Requirements

Requirement Value
Header
Wmdrmsdk.h

See also

Enumeration Types