Microsoft Windows CE 3.0  

CPosPassThru::GetCurrentPosition

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 current position in terms of the media stream's total length.

HRESULT GetCurrentPosition(
LONGLONG* 
pCurrent
);

Parameters

pCurrent
Current position in current time format units.

Return Values

Returns NOERROR if successful. Otherwise, returns the HRESULTvalue returned from calling IMediaSeeking::GetCurrentPositionon the connected pin.

Remarks

This member function implements the IMediaSeeking::GetCurrentPositioninterface. It calls the CPosPassThru::GetMediaTimevirtual member function, which you should override and implement in your derived class to return the current position. If this fails (which it does by default), the IMediaSeeking::GetCurrentPositionon the upstream filter's output pin is called.