Joerg-Cyril.Hoehle@t-systems.com writes:
hopefully somebody familiar with messaging can immediately spot what's wrong with the code below.
The winmm/midi tests currently in git, using PeekMsg, show that the messages (from CALLBACK_WINDOW) are almost always immediately available.
Yet the code below, based on MsgWaitFor... times out multiple times during each test run. Why?
Message waiting functions only return for new input. You need to make sure the queue is empty before waiting.