Windows 10 and 11 introduce the timeout.exe command. This is a similar program with same argument options
--
v22: timeout: add minimal test suite
timeout: Windows 10 introduce the timeout command
https://gitlab.winehq.org/wine/wine/-/merge_requests/6869
These changes are the documented way to implement IMFMediaEventGenerator for a media source. Avoiding using a destroyed event queue is the only reason to lock the CS that I can find. On top of !6783 it seems to resolve hanging while switching characters in Killsquad (not decisively proven though).
--
v2: winegstreamer: Lock the media source critical section while using the event queue.
https://gitlab.winehq.org/wine/wine/-/merge_requests/6800