Re: PeekMsg/MsgWaitForMultipleObjects question

2010-02-24 Thread Joerg-Cyril.Hoehle
Hi, Alexandre wrote: >Message waiting functions only return for new input. You need to make >sure the queue is empty before waiting. Actually, now that I believe I understand the issue, I'd rephrase it differently: The queue need not be empty (a message might have arrived 1 microsecond before the

Re: PeekMsg/MsgWaitForMultipleObjects question

2010-02-23 Thread Alexandre Julliard
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 MsgWait

PeekMsg/MsgWaitForMultipleObjects question

2010-02-23 Thread Joerg-Cyril.Hoehle
Hi, 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