Share via


IMFContentDecryptionModule::CreateSession-Methode (mfcontentdecryptionmodule.h)

Erstellt ein IMFContentDecryptionModuleSession-Objekt , das eine CDM-Sitzung (Content Decryption Module) darstellt.

Syntax

HRESULT CreateSession(
  MF_MEDIAKEYSESSION_TYPE                    sessionType,
  IMFContentDecryptionModuleSessionCallbacks *callbacks,
  IMFContentDecryptionModuleSession          **session
);

Parameter

sessionType

Ein Member der MF_MEDIAKEYSESSION_TYPE , der den Typ der zu erstellenden CDM-Sitzung angibt.

callbacks

Ein IMFContentDecryptionModuleSessionCallbacks-Objekt zum Empfangen von Schlüssel- status Änderungsupdates.

session

Empfängt das erstellte IMFContentDecryptionModuleSession-Objekt .

Rückgabewert

Gibt bei Erfolg S_OK zurück.

Hinweise

CreateSession basiert auf der createSession-Spezifikation der Encrypted Media Extension- Spezifikation.

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows 10, Version 2004 (10.0; Build 19041)
Unterstützte Mindestversion (Server) Windows Server, Version 2004 (10.0; Build 19041)
Kopfzeile mfcontentdecryptionmodule.h