Most of the Win32 main loops I've seen are all structured like:
while (GetMessage(&message, NULL, 0, 0) > 0) {
TranslateMessage(&message);
DispatchMessage(&message);
}
It was pointed out to me that MsgWaitForMultipleObjects
may be used to add some variety to a main loop. But is there a scenario where doing something between GetMessage
, TranslateMessage
and DispatchMessage
is actually useful?