Share via


IMultiMediaStream::GetTime (Windows Embedded CE 6.0)

1/6/2010

This method retrieves the current time from the multimedia stream's clock, if it has a clock.

Syntax

HRESULT GetTime(
  STREAM_TIME* pCurrentTime
);

Parameters

  • pCurrentTime
    [out] Pointer to a STREAM_TIME value that will contain the current time, if the media stream has a clock.

Return Value

Returns one of the following values.

Value Description

E_POINTER

The pCurrentTime pointer is invalid.

S_FALSE

Stream does not have a clock; *pCurrentTime is zero.

S_OK

Stream has a clock and the method succeeded; pCurrentTime contains the current time.

Remarks

If the stream does not have a clock, this method sets *pCurrentTime to zero and returns S_FALSE.

If a stream has a clock, the stream sample times are relative to the stream's clock.

STREAM_TIME is defined as a LONGLONG value.

Requirements

Windows Embedded CE Windows CE 2.12 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later

See Also

Reference

IMultiMediaStream Interface