Microsoft DirectX 9.0

IMultiMediaStream::GetTime

The GetTime method retrieves the current stream time.

Syntax

HRESULT GetTime(
  STREAM_TIME *pCurrentTime
  );

Parameters

pCurrentTime

[out] Pointer to a variable that receives the stream time, in 100-nanosecond units.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code Description
E_POINTER NULL pointer argument.
S_FALSE Could not get the stream time, or there is no clock.
S_OK Success.

See Also