IMFContentDecryptionModuleSession::GetKeyStatuses method (mfcontentdecryptionmodule.h)

Gets a reference to an array of structures that represent the key IDs known to the Content Decryption Module (CDM) session and the current status of the associated key.

Syntax

HRESULT GetKeyStatuses(
  MFMediaKeyStatus **keyStatuses,
  UINT             *numKeyStatuses
);

Parameters

keyStatuses

Receives a pointer to an array of MFMediaKeyStatus structures containing the IDs and statuses of the keys known to the CDM session.

numKeyStatuses

Receives the number of structures present in the keyStatuses array.

Return value

Returns S_OK. If an error occurs, the returned key status list is empty.

Remarks

GetKeyStatuses is based on the Encrypted Media Extension specification's MediaKeySession.keyStatuses.

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