End Windows application (but not simply terminating the process)
See the question and my original answer on StackOverflowWindows Task Manager uses the EndTask function for this: EndTask Function. This function first sends nice WM_CLOSE messages.
Windows Task Manager uses the EndTask function for this: EndTask Function. This function first sends nice WM_CLOSE messages.