Easier Windows Event Multiplexing on Waiting for Multiple Objects
WaitForMultipleObjectsreturnsastrangelycookedDWORDvaluethatcanhaveflagsmeaningerror,timeout,signaledorabandonedcondition,aswellasanindexintoahandleinthearraythatispassedtoit.Itisevenworse,ifyouchanget