Compartilhar via


CPosPassThru::GetPositions

 
Microsoft DirectShow 9.0

CPosPassThru::GetPositions

The GetPositions method retrieves the current position and the stop position, relative to the total duration of the stream. This method implements the IMediaSeeking::GetPositions method.

Syntax

  HRESULT GetPositions(
    LONGLONG *pCurrent,
    LONGLONG *pStop
);

Parameters

pCurrent

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

pStop

Pointer to a variable that receives the stop position, 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