IDkmRunningProcessInfoProvider.TerminateRunningProcess Method

Definition

Terminates a process running on target computer which is not being debugged.

public:
 void TerminateRunningProcess(Microsoft::VisualStudio::Debugger::DefaultPort::DkmTransportConnection ^ connection, int id, long startTime, int exitCode);
public void TerminateRunningProcess (Microsoft.VisualStudio.Debugger.DefaultPort.DkmTransportConnection connection, int id, long startTime, int exitCode);
abstract member TerminateRunningProcess : Microsoft.VisualStudio.Debugger.DefaultPort.DkmTransportConnection * int * int64 * int -> unit
Public Sub TerminateRunningProcess (connection As DkmTransportConnection, id As Integer, startTime As Long, exitCode As Integer)

Parameters

connection
DkmTransportConnection

[In] This represents a connection between the monitor and the IDE. It can either be a local connection if the monitor is running in the same process as the IDE, or it can be a remote connection. In the monitor process, there is only one connection.

id
Int32

[In] Process Id (PID) assigned by the operating system.

startTime
Int64

[In] 64-bit date time value indicating when the process was started. The start time along with the id and the machine where the process was started can uniquely identify a process. '0' can be passed if the start time is unknown.

exitCode
Int32

[In] The exit code to be used by the process and threads terminated as a result of this call. Use the GetExitCodeProcess function to retrieve a process's exit value. Use the GetExitCodeThread function to retrieve a thread's exit value.

Applies to