DWORD hndlCount = 0; hndlCount = sizeof(event) / sizeof(event[0]); MsgWaitForMultipleObjects(hndlCount, event, ...