IMFMediaKeys::CreateSession method
Creates a media key session object using the specified initialization data and custom data. .
Syntax
HRESULT CreateSession( BSTR mimeType, const BYTE *initData, DWORD cb, const BYTE *customData, DWORD cbCustomData, IMFMediaKeySessionNotify *notify, IMFMediaKeySession **ppSession );
Parameters
- mimeType
-
The MIME type of the media container used for the content.
- initData
-
The initialization data for the key system.
- cb
-
The count in bytes of initData.
- customData
-
Custom data sent to the key system.
- cbCustomData
-
The count in bytes of cbCustomData.
- notify
-
notify
- ppSession
-
The media key session.
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 |
|
See also