I'm unfamiliar with how processes are killed in Windows. In Linux, a "warm" kill sends a signal (15) and the process can handle by instantiating a signal handler it and a cold kill sends signal (9) which the OS handles killing the process by force.
What is the procedure in Windows? How can I send a "kill" to a process? How does the process handle it? Is there a cross-platform way of responding to a kill/close request?
UPDATE: Clarification: The question is not on how to kill processes in Windows, but what actions the OS takes to carry this process. In Linux it is with signals where one allows a graceful exit.