Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

43 řádky
1.4 KiB

  1. // This code is distributed under MIT license.
  2. // Copyright (c) 2015 George Mamaladze
  3. // See license.txt or https://mit-license.org/
  4. using System.Runtime.InteropServices;
  5. namespace Gma.System.MouseKeyHook.WinApi
  6. {
  7. /// <summary>
  8. /// The KeyboardHookStruct structure contains information about a low-level keyboard input event.
  9. /// </summary>
  10. /// <remarks>
  11. /// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/hookreference/hookstructures/cwpstruct.asp
  12. /// </remarks>
  13. [StructLayout(LayoutKind.Sequential)]
  14. internal struct KeyboardHookStruct
  15. {
  16. /// <summary>
  17. /// Specifies a virtual-key code. The code must be a value in the range 1 to 254.
  18. /// </summary>
  19. public int VirtualKeyCode;
  20. /// <summary>
  21. /// Specifies a hardware scan code for the key.
  22. /// </summary>
  23. public int ScanCode;
  24. /// <summary>
  25. /// Specifies the extended-key flag, event-injected flag, context code, and transition-state flag.
  26. /// </summary>
  27. public int Flags;
  28. /// <summary>
  29. /// Specifies the Time stamp for this message.
  30. /// </summary>
  31. public int Time;
  32. /// <summary>
  33. /// Specifies extra information associated with the message.
  34. /// </summary>
  35. public int ExtraInfo;
  36. }
  37. }