how to move a mouse pointer by command?

can anyone please teach me how to move a mouse pointer by programming command(not manually by hand)with visual c++ 6.0

SetCursorPos(int x, int y);

jebus