Windows SDK User Interface: How can I emulate mouse events in an application?

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Windows SDK User Interface: How can I emulate mouse events in an application?

The 'mouse_event()' function has been superseded by 'SendInput()' on Window NT/2000/XP. Thus, on these operating systems you should use 'SendInput()' (unless you need to provide backward compatibility with Windows 98 etc.). This FAQ is based on 'SendInput()'.

Can I see some example on how to use 'SendInput()' to emulate a click with the left mouse button?