Microsoft Windows CE 3.0  

CSourceSeeking::SetPositions

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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

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::SetPositionsmethod 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. See the IMediaSeeking::SetPositionsmethod for a description of these flags.

Return Values

Returns E_INVALIDARG if CurrentFlagsand StopFlagsare not one of the values listed, or E_POINTER if pCurrentor pStopis invalid; otherwise, returns the HRESULTreturned by calls to the CSourceSeeking::ChangeStartand CSourceSeeking::ChangeStopfunctions.

Remarks

You must implement ChangeStartand ChangeStopto use this method.

See Also

CSourceSeeking::GetPositions, CSourceSeeking::GetStopPosition, CSourceSeeking::GetDuration