I'm looking for a way to get and set the mouse position on a Remote Desktop. Usually I can use user32's functions such as GetCursorPos and SetCursorPos, but when my RDP is minimized, those functions throw an InvalidOperationException.
I have tried setting a registry key (RemoteDesktop_SuppressWhenMinimized) on my machine to keep session alive, as explained here. But this didn't solve my problem.
Is there any mouse API that work with RDP? Or any configuration I could use?
Thank you!