Compartilhar via


CPosPassThru::SetPositions (Compact 2013)

3/26/2014

Sets current and stop positions and applies flags to both.

Syntax

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

Parameters

  • pCurrent
    Start position if stopped, or position to continue from if paused.
  • dwCurrentFlags
    When seeking, one of these flags must be set to indicate the type of seek. See the IMediaSeeking::SetPositions method for a description of these flags.
  • pStop
    Position in the stream at which to quit.
  • dwStopFlags
    Stop position seeking options to be applied. These are the same as listed for dwCurrentFlags.

Return Value

Returns the HRESULT value returned from calling IMediaSeeking::SetPositions on the connected pin.

Remarks

This member function implements the IMediaSeeking::SetPositions method by calling this same method on the upstream filter's output pin. It allows the retrieval of several values with only one call.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CPosPassThru Class