다음을 통해 공유


CSourceSeeking::GetDuration

 
Microsoft DirectShow 9.0

CSourceSeeking::GetDuration

The GetDuration method retrieves the duration of the stream. This method implements the IMediaSeeking::GetDuration method.

Syntax

  HRESULT GetDuration(
    LONGLONG *pDuration
);

Parameters

pDuration

Pointer to a variable that receives the duration, in units of the current time format.

Return Value

Returns one of the HRESULT values listed in the following table.

Value Description
S_OK Success
E_POINTER NULL pointer value

Remarks

The duration is specified by the CSourceSeeking::m_rtDuration member variable.

Requirements

**  Header:** Declared in Ctlutil.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also