This seems simple, but I'm pretty sure it's impossible.
I want to check all messages in the WM queue at a given time, but I do not want to process any message (PM_NOREMOVE). The problem is if I:
while PeekMessage(msg, 0, 0 PM_NOREMOVE)
# do something with msg
I'll get stuck there forever.
Is there a solution to this?