Share via


SendInput (Windows Embedded CE 6.0)

1/6/2010

This function synthesizes keystrokes, stylus and mouse motions, and button clicks.

Syntax

UINT SendInput(
  UINT nInputs, 
  LPINPUT pInputs, 
  int cbSize 
); 

Parameters

  • nInputs
    Specifies how many structures pInputs points to.
  • pInputs
    Pointer to an array of INPUT structures. Each structure represents an event to be inserted into the keyboard or mouse input stream.
  • cbSize
    Specifies the size of an INPUT structure. If cbSize is not the size of an INPUT structure, the function will fail.

Return Value

The number of events that the function inserted into the keyboard or mouse input stream indicates success. To get extended error information, call GetLastError.

Remarks

Windows Embedded CE does not support the INPUT_HARDWARE value in the type field of the INPUT structure referred to by the pInputs parameter.

The SendInput function inserts the events in the INPUT structures serially into the keyboard or mouse input stream. These events are not interspersed with other keyboard or mouse input events inserted either by the user (with the keyboard or mouse) or by calls to keybd_event, mouse_event, or other calls to SendInput.

Requirements

Header winuser.h
Library Uibase.lib, Wmgr_c.lib
Windows Embedded CE Windows CE 2.0 and later

See Also

Reference

Keyboard Functions
keybd_event
mouse_event
PostKeybdMessage
INPUT