public static DEBUG_EVENT WaitForDebugEvent(uint timeout) { DEBUG_EVENT evt = new DEBUG_EVENT(); WaitForDebugEvent(ref evt, timeout); return evt; }
public static bool ContinueDebugEvent(DEBUG_EVENT evt, bool handled) { uint status; if(handled) status = 0x00010002; else status = 0x80010001; return ContinueDebugEvent(evt.dwProcessId, evt.dwThreadId, status); }