I have an external application that calls my application and is supposed to end it when the job is done. The log from this external application claims it uses WM_CLOSE
on my app.
How can I intercept the WM_CLOSE
message in my application to do some cleanup operations? I tried at_exit()
and wrapping it in a class, but I think I have the wrong approach.