IMFMediaSession::GetClock method (mfidl.h)
Retrieves the Media Session's presentation clock.
HRESULT GetClock( [out] IMFClock **ppClock );
Receives a pointer to the presentation clock's IMFClock interface. The caller must release the interface.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
||The method succeeded.|
||The Media Session does not have a presentation clock.|
||The Media Session has been shut down.|
The application can query the returned IMFClock pointer for the IMFPresentationClock interface. However, the application should not use this interface to control the state of the presentation clock. Instead, the application should always call the transport control methods on the Media Session's IMFMediaSession interface, such as Start, Stop, and Pause.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|