stop
process::stop
terminates a process by using the NtTerminateProcess Windows Native API function. The Win32 API equal one is TerminateProcess. It has the following command line arguments:
positional argument: the name of the process to stop
/pid
: the PID of the process
In the following example, the /pid
of notepad.exe
is 6500
.
Last updated