ole32: Put the PeekMessage call of CoWaitForMultipleHandles into a separate function.