how to kill task by pid windows code example Example 1: kill process in win by pid kill task by pid Example 2: kill process in win by pid kill process by pid