When I attempt to use SetCursorPos at the Windows Vista/7 login screen, true is returned which at first made me think it was working. However, when I call GetCursorPos it gives me:
-858993460,-858993460
Any thoughts why? Is this a “security feature” or am I using it incorrectly? The code works fine on non-login (i.e. normal) desktop.
Alternative solution: It is possible (but very tricky) to use
mouse_event(which does work at login screen) instead ofSetCursorPos. I don’t have time to post code now, but if asked I may update this answer…