Can a service run an app?

  • Thread starter Thread starter Terry Olsen
  • Start date Start date
T

Terry Olsen

Can I write a windows service that will run a windows app? (the app starts
minimized to the tray) If so, what would happen if a logged in user closed
the app?
 
Can I write a windows service that will run a windows app? (the app
starts minimized to the tray) If so, what would happen if a logged in
user closed the app?

I believe a service can do anything as long as it has the proper
permissions. So yes, you should be able to launch an app from a service.
 
Of course. It is done all the time. Service provides the routine
cycle or heart-beat, or whatever, key is to have VERY little code in
the service to keep overhead low. Thus, the executable called has ALL
the guts to get real work done.
 
Is it possible for a user to shut down the app? If so, I'm guessing that
the service can poll and see if the app is running and start it if not???
 
Back
Top