/// <summary> /// Unregisters the hotkey. /// </summary> /// <param name="hotkey">The hotkey.</param> /// <returns></returns> public bool UnregisterHotkey(Hotkey hotkey) { m_hotkeyHandlers.Remove(hotkey); return(User32.UnregisterHotKey(m_dummyWindow.Handle, hotkey.GetHashCode())); }
protected bool RegisterHotkey(Hotkey key) { //register hotkey return(User32.RegisterHotKey(m_window.Handle, this.GetType().GetHashCode(), (int)key.Modifiers, (int)key.Key)); }