IMFContentDecryptionModuleAccess::CreateContentDecryptionModule method (mfcontentdecryptionmodule.h)

Creates a IMFContentDecryptionModule that represents a Content Decryption Module (CDM) for a DRM key system.

Syntax

HRESULT CreateContentDecryptionModule(
  IPropertyStore             *contentDecryptionModuleProperties,
  IMFContentDecryptionModule **contentDecryptionModule
);

Parameters

contentDecryptionModuleProperties

An IPropertyStore object containing the properties for the CDM.

contentDecryptionModule

Receives the created IMFContentDecryptionModule object.

Return value

Returns S_OK on success.

Remarks

The following properties are supported for the contentDecryptionModuleProperties parameter.

Property Description
MF_CONTENTDECRYPTIONMODULE_INPRIVATESTOREPATH A file path representing a storage location the Content Decryption Module (CDM) can use for content-specific data.
MF_CONTENTDECRYPTIONMODULE_STOREPATH A file path representing a storage location the Content Decryption Module (CDM) can use for initialization. The path specified with this property will also be used for content-specific data if the MF_CONTENTDECRYPTIONMODULE_INPRIVATESTOREPATH property isn't set.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004 (10.0; Build 19041)
Minimum supported server Windows Server, version 2004 (10.0; Build 19041)
Header mfcontentdecryptionmodule.h