public void Dispose() { NtDbgUi.DbgUiSetThreadDebugObject(_old_debug_object_handle); }
public ScopedDebugObject(NtDebug debug_object) { _debug_object = debug_object; _old_debug_object_handle = NtDbgUi.DbgUiGetThreadDebugObject(); NtDbgUi.DbgUiSetThreadDebugObject(debug_object.Handle.DangerousGetHandle()); }