PlayReadyHardwareDRMFeatures Enum

Definition

Indicates the valid list of hardware digital rights management (DRM) feature values that can be queried.

public enum class PlayReadyHardwareDRMFeatures
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class PlayReadyHardwareDRMFeatures
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum PlayReadyHardwareDRMFeatures
var value = Windows.Media.Protection.PlayReady.PlayReadyHardwareDRMFeatures.hardwareDRM
Public Enum PlayReadyHardwareDRMFeatures
Inheritance
PlayReadyHardwareDRMFeatures
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
HardwareDRM 1

Hardware DRM is supported on the machine.

HEVC 2

Indicates the hardware supports High Efficiency Video Coding (HEVC)/H.265 codec.

Aes128Cbc 3

Indicates the hardware supports AES128CBC encryption.

Remarks

Starting with Windows 10, version 1709, you can detect support for AES128CBC hardware encryption on a device by calling PlayReadyStatics.CheckSupportedHardware and specifying the enumeration value Aes128Cbc. On previous versions of Windows 10, specifying this value will cause an exception to be thrown. For this reason, you should check for the presence of the enumeration value by calling ApiInformationIsApiContractPresent and specifying major contract version 5 before calling CheckSupportedHardware.

bool supportsAes128Cbc = ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 5);

if (supportsAes128Cbc)
{
    supportsAes128Cbc = PlayReadyStatics.CheckSupportedHardware(PlayReadyHardwareDRMFeatures.Aes128Cbc);
}

Version history

Windows version SDK version Value added
1709 16299 Aes128Cbc

Applies to