I am working on a feasibility task, where I need to start an application in a custom desktop (programmatically created desktop, using CreateDesktop()
).
Scenario:
ConsoleTestApplication: Use ShellExecute()
to start an MFC application, LaunchingApp
LaunchingApp: Creates a new custom desktop and start a WPF application using ShellExecute()
. The WPF application should open in the custom desktop.
The above scenario works while using CreateProcess()
. When I tried with ShellExecute()
, the custom desktop just glitched away, and didn't work.
Does ShellExecute()
work along with custom desktop creation?
Is there any possible way to solve the above scenario using ShellExecute()
? Can you suggest a solution for this?