using System.Runtime.InteropServices; namespace Microsoft.Win32 { /// /// HARDWAREINPUT定义 /// public static partial class NativeMethods { /// /// 硬件输入 /// [StructLayout(LayoutKind.Sequential)] public struct HARDWAREINPUT { /// /// The message generated by the input hardware. /// public int uMsg; /// /// The low-order word of the lParam parameter for uMsg. /// public short wParamL; /// /// The high-order word of the lParam parameter for uMsg. /// public short wParamH; } } }