ia event interface
//after it has already been released. (! pME) S_OK;
//Process all queued events (SUCCEEDED (pME- gt; GetEvent ( amp; evCode, (LONG_PTR *) amp; evParam1,
(LONG_PTR *) amp; evParam2, 0)))
{
//Free memory associated with callback, since we're not using it=pME- gt; FreeEventParams (evCode, evParam1, evParam2);
//If this is the end of the clip, reset to beginning (EC_COMPLETE == evCode)
{pos=0;
//Reset to first frame of movie=pMS- gt; SetPositions ( amp; pos, AM_SEEKING_AbsolutePositioning ,, AM_SEEKING_NoPositioning); (FAILED (hr))
{
//Some custom filters (like the Windows CE MIDI filter)
//may not implement seeking interfaces (IMediaSeeking)
//to allow seeking to the start. In that case, just stop
//and restart for the same effect. This should not be
//necessary in most cases. (FAILED (hr=pMC- gt; Stop ()))
{(TEXT ( Failed (0x% 08lx) to stop media clip! r n ), hr) ;;
}
(FAILED (hr=pMC- gt; Run ()))
{(TEXT ( Failed (0x% 08lx) to reset media clip! r n ), hr) ;;
}
}
}
}
hr;
}
}