Provide support of HotKeys to manage thumbnails and corresponding EVE clients - implemented w/o GUI required to set hotkeys

This commit is contained in:
Anton Kasyanov
2016-06-15 01:59:20 +03:00
parent fa4086aba7
commit d136da3da1
10 changed files with 269 additions and 366 deletions

View File

@@ -0,0 +1,23 @@
using System;
using System.Runtime.InteropServices;
namespace EveOPreview.UI
{
static class HotkeyHandlerNativeMethods
{
[DllImport("user32.dll")]
public static extern bool RegisterHotKey(IntPtr hWnd, int id, uint fsModifiers, uint vk);
[DllImport("user32.dll")]
public static extern bool UnregisterHotKey(IntPtr hWnd, int id);
public const uint WM_HOTKEY = 0x0312;
public const uint MOD_ALT = 0x1;
public const uint MOD_CONTROL = 0x2;
public const uint MOD_SHIFT = 0x4;
public const uint MOD_WIN = 0x8;
public const uint ERROR_HOTKEY_ALREADY_REGISTERED = 1409;
}
}