/// <summary>
 /// Unregisters a hotkey from the message receiving queue.
 /// </summary>
 /// <param name="hotKey">Hotkey to unregister.</param>
 internal static void UnregisterHotkey(GlobalHotkey hotKey)
 {
     if (hotKey != null)
     {
         GlobalHotkey.UnregisterHotkey(hotKey.ID);
     }
 }
 /// <summary>
 /// Unregisters this global key.
 /// </summary>
 private void UnregisterGlobalHotkey()
 {
     if (this.ID != 0)
     {
         GlobalHotkey.UnregisterHotkey(this);
         UnregisterHotKey(this.Helper.Handle, ID);
         // clean up the atom list
         GlobalDeleteAtom(ID);
         ID        = 0;
         Key       = System.Windows.Forms.Keys.None;
         Modifiers = KeyModifier.None;
     }
 }