Microsoft Windows CE 3.0  

CSourceSeeking::GetDuration

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.

Retrieves the length of time that the media stream will play.

HRESULT GetDuration(
LONGLONG *
pDuration
);

Parameters

pDuration
Duration of the media stream set to the value in m_rtDuration.

Return Values

Returns E_POINTER if pDurationis invalid; otherwise, returns S_OK.

Remarks

The duration in m_rtDurationis set to the stop time in m_rtStop. Set the stop time with the CSourceSeeking::SetPositionsfunction.