IMFMediaEngineClassFactoryEx::CreateMediaKeys method (mfmediaengine.h)

Creates a media keys object based on the specified key system.

Syntax

HRESULT CreateMediaKeys(
  BSTR         keySystem,
  BSTR         cdmStorePath,
  IMFMediaKeys **ppKeys
);

Parameters

keySystem

The media keys system.

cdmStorePath

Points to a location to store Content Decryption Module (CDM) data which might be locked by multiple process and so might be incompatible with store app suspension.

ppKeys

The media keys.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Checks if keySystem is a supported key system and creates the related Content Decryption Module (CDM).

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header mfmediaengine.h

See also

IMFMediaEngineClassFactoryEx