using System.Runtime.InteropServices;
namespace Microsoft.Win32
{
///
/// INPUT定义
///
public static partial class NativeMethods
{
///
/// 输入数据,如果是64位系统应该改为[FieldOffset(8)]
///
[StructLayout(LayoutKind.Explicit)]
public struct INPUT
{
///
/// Indicates the type of device information this structure carries. It is one of the following values.
///
[FieldOffset(0)]
public int type;
///
/// MOUSEINPUT structure that contains information about simulated mouse input.
///
[FieldOffset(4)]
public MOUSEINPUT mi;
///
/// KEYBDINPUT structure that contains information about simulated keyboard input.
///
[FieldOffset(4)]
public KEYBDINPUT ki;
///
/// HARDWAREINPUT structure that contains information about a simulated input device message.
///
[FieldOffset(4)]
public HARDWAREINPUT hi;
}
}
}