Exemple #1
0
        // This function is used to terminate a process that the SampleEngine launched
        // The debugger will call IDebugEngineLaunch2::CanTerminateProcess before calling this method.
        int IDebugEngineLaunch2.TerminateProcess(IDebugProcess2 process)
        {
            if (EngineUtils.GetProcessId(process) != EngineUtils.GetProcessId(debugProcess))
            {
                return(VSConstants.S_FALSE);
            }

            EnqueueCommand(new Command(CommandKind.Detach));

            return(debugProcess.Terminate());
        }
Exemple #2
0
 public int TerminateProcess(IDebugProcess2 pProcess)
 {
     pProcess.Terminate();
     Send(new MonoProgramDestroyEvent(0), MonoProgramDestroyEvent.IID, null);
     return(VSConstants.S_OK);
 }
Exemple #3
0
 public int Terminate()
 {
     _process.Terminate();
     _engineIntegration.ExecutionCompleted -= ExecutionCompleted;
     return(VSConstants.S_OK);
 }
Exemple #4
0
 /// <summary>
 /// Terminates a process.
 /// </summary>
 public int TerminateProcess(IDebugProcess2 pProcess)
 {
     DLog.Debug(DContext.VSDebuggerComCall, "IDebugEngine2.TerminateProcess");
     return pProcess.Terminate();
 }
Exemple #5
0
 // Token: 0x0600005C RID: 92 RVA: 0x000034D3 File Offset: 0x000016D3
 public int TerminateProcess(IDebugProcess2 pProcess)
 {
     pProcess.Terminate();
     this.processes.Remove((Process)pProcess);
     return(0);
 }
Exemple #6
0
 /// <summary>
 ///     This function is used to terminate a process that the SampleEngine launched
 ///     The debugger will call IDebugEngineLaunch2::CanTerminateProcess before calling this method
 /// </summary>
 /// <param name="pProcess"></param>
 /// <returns>If successful, returns S_OK; otherwise, returns an error code.</returns>
 public int TerminateProcess(IDebugProcess2 pProcess)
 {
     pProcess.Terminate();
     Callback.Send(new SampSharpDestroyEvent(0), SampSharpDestroyEvent.Iid, null);
     return(S_OK);
 }
Exemple #7
0
 int IDebugEngineLaunch2.TerminateProcess(IDebugProcess2 process)
 {
     return(process.Terminate());
 }
 int IDebugEngineLaunch2.TerminateProcess(IDebugProcess2 process) => process.Terminate();
Exemple #9
0
 /// <summary>
 /// Terminates a process.
 /// </summary>
 public int TerminateProcess(IDebugProcess2 pProcess)
 {
     DLog.Debug(DContext.VSDebuggerComCall, "IDebugEngine2.TerminateProcess");
     return(pProcess.Terminate());
 }