예제 #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);
        }