The definition of MsgWaitForMultipleObjects was incorrect; pHandles should be a pointer type, but was defined as an integer. More strangely, we were passing in an array size of "1" which specified that we wanted to wait on a handle, but then passed in a null array which doesn't make sense.
The definition of MsgWaitForMultipleObjects was incorrect; pHandles should be a pointer type, but was defined as an integer. More strangely, we were passing in an array size of "1" which specified that we wanted to wait on a handle, but then passed in a null array which doesn't make sense.