int ICorDebug.GetProcess(uint dwProcessId, out ICorDebugProcess ppProcess) { ppProcess = null; foreach (CorDebugProcess process in _processes) { uint id = process.PhysicalProcessId.dwProcessId; if (dwProcessId == id) { ppProcess = process; break; } } return(COM_HResults.BOOL_TO_HRESULT_FAIL(ppProcess != null)); /*better failure?*/ }
int ICorDebugThread.GetCurrentException(out ICorDebugValue ppExceptionObject) { ppExceptionObject = GetLastCorDebugThread()._currentException; return(COM_HResults.BOOL_TO_HRESULT_FALSE(ppExceptionObject != null)); }
int Microsoft.VisualStudio.Debugger.Interop.IDebugPort2.GetProcess(AD_PROCESS_ID ProcessId, out IDebugProcess2 ppProcess) { ppProcess = ((DebugPort)this).GetProcess(ProcessId); return(COM_HResults.BOOL_TO_HRESULT_FAIL(ppProcess != null)); }