Can a service run an app?

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?
 
A

Anon-E-Moose

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.
 
S

Schorschi

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.
 
T

Terry Olsen

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???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top