Microsoft DirectX 9.0

CSourceSeeking::GetDuration

The GetDuration method retrieves the duration of the stream. This method implements the IMediaSeeking::GetDuration method.

Syntax

HRESULT GetDuration(
    LONGLONG *pDuration
);

Parameters

pDuration

Pointer to a variable that receives the duration, in units of the current time format.

Return Value

Returns one of the HRESULT values listed in the following table.

Value Description
S_OK Success
E_POINTER NULL pointer value

Remarks

The duration is specified by the CSourceSeeking::m_rtDuration member variable.

See Also