public static void Unhook() { if (hhook != IntPtr.Zero) NativeMethods.UnhookWinEvent(hhook); } static void WinEventProc(IntPtr hWinEventHook, uint eventType,
private void editor_Exited(object sender, EventArgs e) { _triggerExit = false; SetRestoreSize(); ChildTracker.Unhook(); Environment.Exit(0); }