When reading mouse position in WM_INPUT event, and the mouse cursor is hidden, it seems SetCursorPos does not work when the app is used through remote desktop.
The same exact code works fine when the app is not used through remote desktop. i.e. I can get infinite mouse movements in all directions just fine, since SetCursorPos properly moves the mouse cursor at center of screen when the app is accessed locally.
Is it a limitation (perhaps security related) of SetCursorPos when accessed from remote desktop? Or is there a work-around to this? Or perhaps it is because the mouse position values are absolute (MOUSE_MOVE_ABSOLUTE bit is set)?
All values I read from WM_INPUT are not affected whatever I set in SetCursorPos.
Any help appreciated, thanks!