Si puo' usare la API

SendInput

passandole una struttura di tipo

INPUT

che al suo interno ha definito una apposita struttura di tipo

MOUSEINPUT