But I remember the times when that blog didn't look like a webdesign internship project in progress. And there were interesting comments…
https://devblogs.microsoft.com/oldnewthing/?p=36423
“One danger of the MsgWaitForMultipleObjects function is calling it when there are already messages waiting to be processed, because MsgWaitForMultipleObjects returns only when there is a new event in the queue.“