Partager via


CSourceSeeking::SetPositions (Windows Embedded CE 6.0)

1/6/2010

Sets current and stop positions, first checking that the seeking options are valid.

Syntax

HRESULT SetPositions(
  LONGLONG* pCurrent,
  DWORD CurrentFlags,
  LONGLONG* pStop,
  DWORD StopFlags 
);

Parameters

  • pCurrent
    Start position if stopped, or position to continue from if paused.
  • CurrentFlags
    Flags that indicate the type of seek. Valid values are AM_SEEKING_AbsolutePositioning and AM_SEEKING_RelativePositioning. See the IMediaSeeking::SetPositions method for a description of these flags.
  • pStop
    Position in the stream at which to quit playback.
  • StopFlags
    Flags that indicate stop position seeking options.

    Valid values are AM_SEEKING_AbsolutePositioning, AM_SEEKING_RelativePositioning, and AM_SEEKING_IncrementalPositioning.

    For a description of these flags, see the IMediaSeeking::SetPositions method.

Return Value

Returns E_INVALIDARG if CurrentFlags and StopFlags are not one of the values listed, or E_POINTER if pCurrent or pStop is invalid; otherwise, returns the HRESULT returned by calls to the CSourceSeeking::ChangeStart and CSourceSeeking::ChangeStop functions.

Remarks

You must implement ChangeStart and ChangeStop to use this method.

Requirements

Windows Embedded CE Windows CE 2.12 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later

See Also

Reference

CSourceSeeking Class
CSourceSeeking::GetPositions
CSourceSeeking::GetStopPosition
CSourceSeeking::GetDuration