Share via


CPosPassThru::SetPositions

 
Microsoft DirectShow 9.0

CPosPassThru::SetPositions

The SetPositions method sets the current position and the stop position. This method implements the IMediaSeeking::SetPositions method.

Syntax

  HRESULT SetPositions(
    LONGLONG *pCurrent,
    DWORD dwCurrentFlags,
    LONGLONG *pStop,
    DWORD dwStopFlags
);

Parameters

pCurrent

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

dwCurrentFlags

Bitwise combination of flags. See IMediaSeeking::SetPositions for more information.

pStop

Pointer to a variable that specifies the stop time, in units of the current time format.

dwStopFlags

Bitwise combination of flags. See IMediaSeeking::SetPositions for more information.

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