Question

It is possible to start an application on another desktop as this example in autoit shows:

http://www.autoitscript.com/forum/topic/159441-createprocess-on-other-desktop-and-bring-it-back/

But is it possible to bring it back to the input desktop?

How to switch a process between default desktop and Winlogon desktop?

...says it is only possible for applications without window handles. But any windows app has at least one window. What is the purpose of SetThreadDesktop when it only can move console applications in a multi desktop-system?

And if SetThreadDesktop can move the calling thread how to perform that for the process I started which does not belong to my thread but has its own PID?

Thanks

No correct solution

OTHER TIPS

I am sure you are misunderstood concept of desktops. In Windows desktop is securable object, not graphical entity. Not confuse with Desktop in Windows Shell namespace.

Also is possible create windows app without any window so SetThreadDesktop works for windows app too, not only for console.

And last note: Input desktop is designed for input, why you want move any windows from another desktop? What is your design goal?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top