win32process.TerminateProcess

TerminateProcess(handle, exitCode)

Terminates the specified process and all of its threads.

Parameters

handle : PyHANDLE

handle to the process

exitCode : int

The exit code for the process.