示例#1
0
文件: AD7Engine.cs 项目: zer09/Cosmos
        int IDebugEngineLaunch2.TerminateProcess(IDebugProcess2 aProcess)
        {
            // This function is used to terminate a process that the SampleEngine launched
            // The debugger will call IDebugEngineLaunch2::CanTerminateProcess before calling this method.
            try {
                mProcess.Terminate();

                mEngineCallback.OnProcessExit(0);
                mProgram = null;
            } catch (Exception e) {
                return(EngineUtils.UnexpectedException(e));
            }
            return(VSConstants.S_OK);
        }