I tried to simulate key press on Remote Desktop. (WindowsInput v. 2) It'a OK then RD Window is active or maximized. But if it's minimazed the error is thrown.
Error message: "A first chance exception of type 'System.Exception' occurred in WindowsInput.dll
Some simulated input commands were not sent successfully. The most common reason for this happening are the security features of Windows including User Interface Privacy Isolation (UIPI). Your application can only send commands to applications of the same or
lower elevation. Similarly certain commands are restricted to Accessibility/UIAutomation applications. Refer to the project home page and the code samples for more information."
Is it possible to simulate key press in this situation? Or maybe Windows forbids such behavior?