KEYEVENTF.cs 990 B

1234567891011121314151617181920212223
  1. namespace Microsoft.Win32
  2. {
  3. //KEYEVENTF定义
  4. public static partial class NativeMethods
  5. {
  6. /// <summary>
  7. /// If specified, the scan code was preceded by a prefix byte that has the value 0xE0 (224).
  8. /// </summary>
  9. public const int KEYEVENTF_EXTENDEDKEY = 0x0001;
  10. /// <summary>
  11. /// If specified, the key is being released. If not specified, the key is being pressed.
  12. /// </summary>
  13. public const int KEYEVENTF_KEYUP = 0x0002;
  14. /// <summary>
  15. /// 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.
  16. /// </summary>
  17. public const int KEYEVENTF_UNICODE = 0x0004;
  18. /// <summary>
  19. /// If specified, wScan identifies the key and wVk is ignored.
  20. /// </summary>
  21. public const int KEYEVENTF_SCANCODE = 0x0008;
  22. }
  23. }