有使用C# 做过C#调试器的大侠们 , 请进来帮个忙, 有一个问题想请教一下.
Object res;Process proc = Process.GetProcessById(pid);IEnumUnknown runtimes = metahost.EnumerateLoadedRuntimes(proc.Handle);ICLRRuntimeInfo runtime = GetRuntime(runtimes, desiredVersion);runtime.GetInterface(ref CLSID_ICorDebug, ref IID_ICorDebug, out res);((ICorDebug)res).Initialize();((ICorDebug)res).SetManagedHandler(new ManagedCallback(options));