win32ts.WTSTerminateProcess

WTSTerminateProcess(Server, ProcessId, ExitCode)

Kills a process on a terminal server

Parameters

Server : PyHANDLE

Handle to a terminal server

ProcessId : int

Id of a process as returned by win32ts::WTSEnumerateProcesses

ExitCode : int

Exit code for the process