HARDWAREINPUT.cs 823 B

123456789101112131415161718192021222324252627282930
  1. using System.Runtime.InteropServices;
  2. namespace Microsoft.Win32
  3. {
  4. /// <summary>
  5. /// HARDWAREINPUT定义
  6. /// </summary>
  7. public static partial class NativeMethods
  8. {
  9. /// <summary>
  10. /// 硬件输入
  11. /// </summary>
  12. [StructLayout(LayoutKind.Sequential)]
  13. public struct HARDWAREINPUT
  14. {
  15. /// <summary>
  16. /// The message generated by the input hardware.
  17. /// </summary>
  18. public int uMsg;
  19. /// <summary>
  20. /// The low-order word of the lParam parameter for uMsg.
  21. /// </summary>
  22. public short wParamL;
  23. /// <summary>
  24. /// The high-order word of the lParam parameter for uMsg.
  25. /// </summary>
  26. public short wParamH;
  27. }
  28. }
  29. }