다음을 통해 공유


CPosPassThru::GetDuration

 
Microsoft DirectShow 9.0

CPosPassThru::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 the HRESULT value from the connected pin.

Requirements

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

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

See Also