WM.cs
1 // Copyright (c) Microsoft Corporation 2 // The Microsoft Corporation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using System; 6 7 // <summary> 8 // Virtual key constants. 9 // </summary> 10 // <history> 11 // 2008 created by Truong Do (ductdo). 12 // 2009-... modified by Truong Do (TruongDo). 13 // 2023- Included in PowerToys. 14 // </history> 15 namespace MouseWithoutBorders.Core; 16 17 internal partial class WM 18 { 19 internal const ushort KEYEVENTF_KEYDOWN = 0x0001; 20 internal const ushort KEYEVENTF_KEYUP = 0x0002; 21 22 internal const int WH_MOUSE = 7; 23 internal const int WH_KEYBOARD = 2; 24 internal const int WH_MOUSE_LL = 14; 25 internal const int WH_KEYBOARD_LL = 13; 26 27 internal const int WM_MOUSEMOVE = 0x200; 28 internal const int WM_LBUTTONDOWN = 0x201; 29 internal const int WM_RBUTTONDOWN = 0x204; 30 internal const int WM_MBUTTONDOWN = 0x207; 31 internal const int WM_XBUTTONDOWN = 0x20B; 32 internal const int WM_LBUTTONUP = 0x202; 33 internal const int WM_RBUTTONUP = 0x205; 34 internal const int WM_MBUTTONUP = 0x208; 35 internal const int WM_XBUTTONUP = 0x20C; 36 internal const int WM_LBUTTONDBLCLK = 0x203; 37 internal const int WM_RBUTTONDBLCLK = 0x206; 38 internal const int WM_MBUTTONDBLCLK = 0x209; 39 internal const int WM_MOUSEWHEEL = 0x020A; 40 internal const int WM_MOUSEHWHEEL = 0x020E; 41 42 internal const int WM_KEYDOWN = 0x100; 43 internal const int WM_KEYUP = 0x101; 44 internal const int WM_SYSKEYDOWN = 0x104; 45 internal const int WM_SYSKEYUP = 0x105; 46 47 [Flags] 48 internal enum LLKHF 49 { 50 EXTENDED = 0x01, 51 INJECTED = 0x10, 52 ALTDOWN = 0x20, 53 UP = 0x80, 54 } 55 }