IMFMediaKeySession interface (mfmediaengine.h)

Represents a session with the Digital Rights Management (DRM) key system.


The IMFMediaKeySession interface inherits from the IUnknown interface. IMFMediaKeySession also has these types of members:


The IMFMediaKeySession interface has these methods.

Method Description
IMFMediaKeySession::Close Closes the media key session and must be called before the key session is released.
IMFMediaKeySession::get_KeySystem Gets the name of the key system name the media keys object was created with.
IMFMediaKeySession::get_SessionId Gets a unique session id created for this session.
IMFMediaKeySession::GetError Gets the error state associated with the media key session.
IMFMediaKeySession::Update Passes in a key value with any associated data required by the Content Decryption Module for the given key system.


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

Media Foundation Interfaces