IMFContentDecryptionModule::CreateTrustedInput method (mfcontentdecryptionmodule.h)

Creates an IMFTrustedInput object that implements the decryption of content.

Syntax

HRESULT CreateTrustedInput(
  const BYTE      *contentInitData,
  DWORD           contentInitDataSize,
  IMFTrustedInput **trustedInput
);

Parameters

contentInitData

A BYTE array containing initialization data. contentInitData will only be used if initData from IMFContentDecryptionModuleSession::GenerateRequest is not provided or incomplete. Initialization Data should be structured in PSSH Box Format. For more details, see the Encrypted Media Extension specification's Common SystemID and PSSH Box Format.

contentInitDataSize

The size of the array in contentInitData.

trustedInput

Receives the created IMFTrustedInput object.

Return value

Returns S_OK on success.

Remarks

An implementation of a Content Decryption Module (CDM) may include an implementation of IMFInputTrustAuthority obtained by calling CreateTrustedInput.

The following attributes are supported for IMFInputTrustAuthority decrypter.

Property Description
MFT_POLICY_SET_AWARE If non-zero, indicates that the IMFTransform wants to receive MEPolicySet completion notifications.
MFT_USING_HARDWARE_DRM Specifies whether the IMFTransform is using hardware DRM. If an MFT decrypter specifies this attribute set to 1, then it is using hardware DRM. If an MFT decrypter specifies this attribute set to 0, then it is not using hardware DRM. If an MFT decrypter does not specify this attribute or specifies it with a different value, then it does not (or is unable to) indicate whether it is using hardware DRM.

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

See also

IMFTrustedInput