IMFContentDecryptionModuleSession::GetSessionId method (mfcontentdecryptionmodule.h)

Gets a unique string identifier generated by the Content Decryption Module (CDM) that can be used by the application to identify session objects.

Syntax

HRESULT GetSessionId(
  LPWSTR *sessionId
);

Parameters

sessionId

Receives a pointer to an LPWSTR representing the session ID.

Return value

Returns S_OK on success.

Remarks

GetSessionId is based on the Encrypted Media Extension specification's MediaKeySession.sessionId.

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