I believe Task Manager just sends a SIGTERM.
There's no such thing as signals in Windows. The closest parallel is the message queues of windows.
Furthermore, Task Manager's behaviour varies depending on which tab ("Applications" or "Processes") the item being terminated is located.
When "ending" a "Process", the application is forcibly terminated. ( Reference: TerminateProcess(hProcess, uExitCode) )
When "ending" an "Application", it sends a WM_QUIT WM_CLOSE message to the window. If the application is still running after a small period of time, the user is told the process is not responding, and he is asked whether he wants to terminate the process or not. If the user chooses to terminate the process, it is forcibly terminated. ( Reference: EndTask(hWnd, FALSE, TRUE) )
|