using sendmessage to send wm_close to another process
I would attempt to close a (Process with) Window(s) in the following order: WM_CLOSE WM_QUIT WM_DESTROY TerminateProcess(). Just my take as I am handling (disabling) WM_CLOSE for a Window and having difficulty distinguishing between User Close and close messages send by another master task. WM_QUIT seems to resolve my problem without using a custom WM_APP_CLOSE … Read more