tangxu
2024-10-22 4d9fe5ed98ceb6b8fe9dc52ebfb80860ad1aee99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
namespace Microsoft.Win32
{
    //KEYEVENTF定义
    public static partial class NativeMethods
    {
        /// <summary>
        /// If specified, the scan code was preceded by a prefix byte that has the value 0xE0 (224).
        /// </summary>
        public const int KEYEVENTF_EXTENDEDKEY = 0x0001;
        /// <summary>
        /// If specified, the key is being released. If not specified, the key is being pressed.
        /// </summary>
        public const int KEYEVENTF_KEYUP = 0x0002;
        /// <summary>
        /// If specified, the system synthesizes a VK_PACKET keystroke. The wVk parameter must be zero. This flag can only be combined with the KEYEVENTF_KEYUP flag. For more information, see the Remarks section.
        /// </summary>
        public const int KEYEVENTF_UNICODE = 0x0004;
        /// <summary>
        /// If specified, wScan identifies the key and wVk is ignored.
        /// </summary>
        public const int KEYEVENTF_SCANCODE = 0x0008;
    }
}