private void UnregisterHotkey(Hotkey hotkeyCombo) { bool successful = NativeMethods.UnregisterHotKey( hotkeyWindow.Handle, hotkeyCombo.GetHashCode()); if (!successful) throw new HotkeyNotBoundException(Marshal.GetLastWin32Error()); }