I an using msghook.dll to detect a windows shutdown, and that works great. My question is what is the correct sequence of actions after the message has been sent to my program? I do my housekeeping, then what?
In my before message event, I close my connection to the server. Do I try to close now, or do I reply with a false (saying that shutdown processing should continue) and wait for the WM_CLOSE method to close? I can't seem to get the sequence right, either I get the "this program is not responding" message, or I improperly respond and the shutdown sequence is stopped.