public void OnThreadStart(AD7Thread debuggedThread) { // This will get called when the entrypoint breakpoint is fired because the engine sends a thread start event // for the main thread of the application. //if (m_engine.DebuggedProcess != null) //{ // System.Diagnostics.Debug.Assert(Worker.CurrentThreadId == m_engine.DebuggedProcess.PollThreadId); //} AD7ThreadCreateEvent eventObject = new AD7ThreadCreateEvent(); Send(eventObject, AD7ThreadCreateEvent.IID, debuggedThread); }
internal static void Send(AD7Engine engine, IDebugThread2 aThread) { var eventObject = new AD7ThreadCreateEvent(); engine.Callback.Send(eventObject, IID, aThread); }