次の方法で共有


INPUT (Windows Embedded CE 6.0)

1/6/2010

This structure is used by the SendInput function to synthesize keystrokes, stylus and mouse motions, and button clicks.

Syntax

typedef struct tagINPUT {
  DWORD type;
  union {
    MOUSEINPUT mi;
    KEYBDINPUT ki;
    HARDWAREINPUT hi; 
  };
} INPUT, *PINPUT, FAR* LPINPUT;

Members

  • type
    Indicates the type of device information this structure carries. It is one of the following values.

    Value Description

    INPUT_HARDWARE

    The hi union member is valid.

    INPUT_KEYBOARD

    The ki union member is valid.

    INPUT_MOUSE

    The mi union member is valid.

  • mi
    MOUSEINPUT structure that contains information about simulated mouse input.
  • ki
    KEYBDINPUT structure that contains information about simulated keyboard input.
  • hi
    HARDWAREINPUT structure that contains information about a simulated input device message.

Remarks

Windows Embedded CE does not support the INPUT_HARDWARE value in the type member.

This structure is used with the SendInput sample application.

This structure contains information identical to that used in the parameter list for a call to the keybd_event, mouse_event, or hardware_event functions.

Requirements

Header winuser.h
Windows Embedded CE Windows CE 2.0 and later

See Also

Reference

Keyboard Structures
keybd_event
MOUSEINPUT
KEYBDINPUT
mouse_event
SendInput