[C#][Windows API] Windows 原生指令常數 (Windows API Constansts)
因為我自己把會用到的Windows API整理好寫在一個DLL檔裡面,為了避免凌亂與日後可以使用,把所有會用到的常數都寫在下面這個類別裡面,如果你需要查詢以下常數的實質相信應該能幫到你。
{
public const int WH_MOUSE_LL = 14;
public const int WH_KEYBOARD_LL = 13;
public const int WH_MOUSE = 7;
public const int WH_KEYBOARD = 2;
public const int WM_MOUSEMOVE = 0x200;
public const int WM_LBUTTONDOWN = 0x201;
public const int WM_RBUTTONDOWN = 0x204;
public const int WM_MBUTTONDOWN = 0x207;
public const int WM_LBUTTONUP = 0x202;
public const int WM_RBUTTONUP = 0x205;
public const int WM_MBUTTONUP = 0x208;
public const int WM_LBUTTONDBLCLK = 0x203;
public const int WM_RBUTTONDBLCLK = 0x206;
public const int WM_MBUTTONDBLCLK = 0x209;
public const int WM_MOUSEWHEEL = 0x020A;
public const int WM_KEYDOWN = 0x100;
public const int WM_KEYUP = 0x101;
public const int WM_SYSKEYDOWN = 0x104;
public const int WM_SYSKEYUP = 0x105;
public const int MEF_LEFTDOWN = 0x00000002;
public const int MEF_LEFTUP = 0x00000004;
public const int MEF_MIDDLEDOWN = 0x00000020;
public const int MEF_MIDDLEUP = 0x00000040;
public const int MEF_RIGHTDOWN = 0x00000008;
public const int MEF_RIGHTUP = 0x00000010;
public const int KEF_EXTENDEDKEY = 0x1;
public const int KEF_KEYUP = 0x2;
public const byte VK_SHIFT = 0x10;
public const byte VK_CAPITAL = 0x14;
public const byte VK_NUMLOCK = 0x90;
public const int WM_IME_SETCONTEXT = 0x0281;
public const int WM_CHAR = 0x0102;
public const int WM_IME_COMPOSITION = 0x010F;
public const int GCS_COMPSTR = 0x0008;
}