共用方式為


IDebugEngineLaunch2::TerminateProcess

Terminates a process.

HRESULT TerminateProcess ( 
   IDebugProcess2* pProcess
);
int TerminateProcess ( 
   IDebugProcess2 pProcess
);

Parameters

  • pProcess
    [in] An IDebugProcess2 object that represents the process to be terminated.

Return Value

If successful, returns S_OK; otherwise returns an error code.

Remarks

Call the IDebugEngineLaunch2::CanTerminateProcess method before calling this method.

See Also

Reference

IDebugEngineLaunch2

IDebugProcess2

IDebugEngineLaunch2::CanTerminateProcess