How to switch a process between default desktop and Winlogon desktop?
问题 I am writing a remote desktop application like TeamViewer in C++ on Windows 7 (x64) and Windows 8 (x64). 1. What made me stuck I have implemented the mouse input and keyboard input by using SendInput(). I found SendInput() worked perfectly when the process ran under winsta0\desktop . But after the user locked the computer or the screensaver launched, it didn’t work. If I run the process under winsta0\winlogon , SendInput() doesn’t work under winsta0\default . 2. What I have tried I have tried