IMFClock::GetState Method

Retrieves the current state of the clock.

Syntax

public:
HRESULT GetState(
         DWORD dwReserved,
         MFCLOCK_STATE *peClockState
)  

Parameters

dwReserved
Type: DWORD 

Reserved, must be zero.

peClockState
Type: MFCLOCK_STATE *

[out]

Receives the clock state, as a member of the MFCLOCK_STATE enumeration.

Return value

Type: HRESULT 

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

Return codes
Return code Description
S_OK The method succeeded.

Refer to Media Foundation return codes.

Requirements

Header: Declared in mfidl.h.

Library: Use mfuuid.lib.