Retrieves the current media start and end times registered in the object.

HRESULT GetMediaTime(
LONGLONG *pStartTime,
LONGLONG *pEndTime );


  • pStartTime
    Returned starting media time.
  • pEndTime
    Returned ending media time.

Return Values

Returns an HRESULT value from the call to CPosPassThru::ConvertTimeFormat for the start and end times.


This member function returns the media times set by the CRendererPosPassThru::RegisterMediaTime member function. The starting media time is always returned. Set pEndTime to a nonzero value to retrieve the ending media time.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.