IMFMediaEngineClassFactory2::CreateMediaKeys2 method

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

Syntax


HRESULT CreateMediaKeys2(
  [in]           BSTR         keySystem,
  [in]           BSTR         defaultCdmStorePath,
  [in, optional] BSTR         inprivateCdmStorePath,
  [out]          IMFMediaKeys **ppKeys
);

Parameters

keySystem [in]

The media key system.

defaultCdmStorePath [in]

Points to the default file location for the store Content Decryption Module (CDM) data.

inprivateCdmStorePath [in, optional]

Points to a the inprivate location for the store Content Decryption Module (CDM) data. Specifying this path allows the CDM to comply with the application’s privacy policy by putting personal information in the file location indicated by this path.

ppKeys [out]

Receives the media keys.

Return value

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

Requirements

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

IDL

Mfmediaengine.idl

See also

IMFMediaEngineClassFactory2
IMFMediaKeys

 

 

Show: