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?
Thanks in advance.
Printable View
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?
Thanks in advance.
I'm not sure I understand what you are looking for. Your application begins its shutdown, you do your housekeeping then it closes.
?
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.