Why bother with RegisterWaitForSingleObject when you have MsgWaitForMultipleObjects?
Commenter kokorozashi wonders why you should bother with when you have already. If you want to pump messages and wait for a kernel object, then you can change all calls to , , and to replacement functions that use . Isn't that enough? Why waste an entire thread just to wait for that object? If you're so clever that you can modify every call t...