I have desktop created by Windows API CreateDesktop function. On this desktop I run the application through the CreateProcess or CreateProcessAsUser functions. In the STARTUPINFO structure passed as a parameter to CreateProcess I set lpDesktop to my desktop name.
Everything works fine if I run a "standard" Windows application. But UWP applications always run on the default Windows desktop! I also tried to run UWP applications by LaunchWinApp.exe with the parameter - but without success. UWP applications always run on the default desktop. So how to run UWP application on selected desktop?