Tests with native show that during COM calls posted messages aren't retrieved other than COM calls so change the PeekMessage parameters in CoWaitForMultipleHandles to duplicate this.