I'm making an application that needs to programmatically move the mouse pointer. My ide is VC++ 2013. I'm using the winuser.h header with this function:
SetCursorPos(int x, int y);
But this moves the mouse only on the primary screen. For the case that has only one monitor this works fine. But if I'm in presentation mode, with 2 monitors I need to move the mouse to the second monitor.
so, I to need detect if has 2 monitors and if it has, move the mouse to the second monitor.