IMFMediaSession::GetSessionCapabilities method (mfidl.h)

Retrieves the capabilities of the Media Session, based on the current presentation.

Syntax

HRESULT GetSessionCapabilities(
  [out] DWORD *pdwCaps
);

Parameters

[out] pdwCaps

Receives a bitwise OR of zero or more of the following flags.

Value Meaning
MFSESSIONCAP_PAUSE
The Media Session can be paused.
MFSESSIONCAP_RATE_FORWARD
The Media Session supports forward playback at rates faster than 1.0.
MFSESSIONCAP_RATE_REVERSE
The Media Session supports reverse playback.
MFSESSIONCAP_SEEK
The Media Session can be seeked.
MFSESSIONCAP_START
The Media Session can be started.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
E_POINTER
NULL pointer argument.
MF_E_SHUTDOWN
The Media Session has been shut down.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mfuuid.lib

See also

IMFMediaSession