private static ICorDebug CreateDebugger(ICLRRuntimeInfo runtime) { Object res; runtime.GetInterface(ref codebugger_clsid, ref codebugger_riid, out res); return((ICorDebug)res); }
public ICorDebug GetLegacyICorDebugInterface() { Guid ifaceId = typeof(ICorDebug).GUID; Guid clsId = m_ClsIdClrDebuggingLegacy; return((ICorDebug)m_runtimeInfo.GetInterface(ref clsId, ref ifaceId)); }
// creates ICorDebug instance from ICLRRuntimeInfo private static CorDebugger CreateDebugger(ICLRRuntimeInfo runtime, CorDebuggerOptions options) { Object res; runtime.GetInterface(ref CLSID_ICorDebug, ref IID_ICorDebug, out res); return(new CorDebugger((ICorDebug)res, options)); }
private DebugContext(ICLRRuntimeInfo runtime) { var debuggingClassId = Constants.ClrDebuggingLegacyGuid; var debugInterfaceId = typeof(ICorDebug).GUID; this.debug = (ICorDebug)runtime.GetInterface(ref debuggingClassId, ref debugInterfaceId); this.debug.Initialize(); this.debug.SetManagedHandler(this); }
private ICorDebug GetDebugger(ICLRRuntimeInfo runTime) { Guid iidICorDebug = typeof(ICorDebug).GUID; Guid clsId = clsIdClrDebuggingLegacy; ICorDebug debugger = (ICorDebug)runTime.GetInterface(ref clsId, ref iidICorDebug); return debugger; }
public TInterface GetInterface <TInterface>(Guid clsId) { Guid ifaceId = typeof(TInterface).GUID; return((TInterface)_runtimeInfo.GetInterface(ref clsId, ref ifaceId)); }