SendInput function (winuser.h) - Win32 apps

Synthesizes keystrokes, mouse motions, and button clicks.