Microsoft DirectX 8.1 (C++)

CSourceSeeking::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 CurrentFlags,
    LONGLONG *pStop,
    DWORD StopFlags
);

Parameters

pCurrent

Pointer to a variable that specifies the current position.

CurrentFlags

Bitwise combination of flags. See Remarks.

pStop

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

StopFlags

Bitwise combination of flags. See Remarks.

Return Value

Returns an HRESULT value. Possible values include those listed in the following table.

Value Description
S_OK Success
E_INVALIDARG Invalid flags
E_POINTER NULL pointer argument

Remarks

The following flags are supported:

For more information, see IMediaSeeking::SetPositions.

This method updates the values of the CSourceSeeking::m_rtStart and CSourceSeeking::m_rtStop member variables, and then calls the pure virtual methods CSourceSeeking::ChangeStart and CSourceSeeking::ChangeStop.

See Also