How to launch a Winforms app from a windows-service
问题 Hello i am trying to launch an interactive process - a winforms app - from a windows service on the current session. I do not know how to do that.I am using TopShelf and i tried launching the process using the WhenSessionChanged hook provided by TopShelf . I can get the sessionId var exitCode = HostFactory.Run(x => { x.Service<MyService>(s => { s.ConstructUsing((h) => new MyService()); s.WhenStarted(t => t.Run()); s.WhenStopped(t => t.Stop()); s.WhenSessionChanged((anubis, args) => { string