Is there any easy way to tell whether the program that is running is a
service or a win app?
TIA - Jeff. 6 1218
UJ,
Not really. For what purposes are you trying to figure this out?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"UJ" <fr**@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Is there any easy way to tell whether the program that is running is a service or a win app?
TIA - Jeff.
I've got a watchdog program that will restart application that have died and
I need know which method to do. I guess I can just spin through the services
first and if I find the service that I'm looking for, I can assume it's a
service. Otherwise, it's an app.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:el**************@TK2MSFTNGP14.phx.gbl... UJ,
Not really. For what purposes are you trying to figure this out?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"UJ" <fr**@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... Is there any easy way to tell whether the program that is running is a service or a win app?
TIA - Jeff.
Jeff,
If you have a need for an application that has died, then I would
recommend that you make those applications a service. It seems that you
need them to constantly run, so they should be services to begin with.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"UJ" <fr**@nowhere.com> wrote in message
news:ue****************@TK2MSFTNGP14.phx.gbl... I've got a watchdog program that will restart application that have died and I need know which method to do. I guess I can just spin through the services first and if I find the service that I'm looking for, I can assume it's a service. Otherwise, it's an app.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:el**************@TK2MSFTNGP14.phx.gbl... UJ,
Not really. For what purposes are you trying to figure this out?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"UJ" <fr**@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... Is there any easy way to tell whether the program that is running is a service or a win app?
TIA - Jeff.
That's true. But I have a program that constantly updates the screen and
interacts with the user. That can't be a service can it?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:uM**************@TK2MSFTNGP14.phx.gbl... Jeff,
If you have a need for an application that has died, then I would recommend that you make those applications a service. It seems that you need them to constantly run, so they should be services to begin with.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"UJ" <fr**@nowhere.com> wrote in message news:ue****************@TK2MSFTNGP14.phx.gbl... I've got a watchdog program that will restart application that have died and I need know which method to do. I guess I can just spin through the services first and if I find the service that I'm looking for, I can assume it's a service. Otherwise, it's an app.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:el**************@TK2MSFTNGP14.phx.gbl... UJ,
Not really. For what purposes are you trying to figure this out?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"UJ" <fr**@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... Is there any easy way to tell whether the program that is running is a service or a win app?
TIA - Jeff.
UJ,
No, the functionality can be a service, but you need a separate program
to run to interact with the service, most likely using remoting.
Services should not expose user interfaces.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"UJ" <fr**@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... That's true. But I have a program that constantly updates the screen and interacts with the user. That can't be a service can it?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:uM**************@TK2MSFTNGP14.phx.gbl... Jeff,
If you have a need for an application that has died, then I would recommend that you make those applications a service. It seems that you need them to constantly run, so they should be services to begin with.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"UJ" <fr**@nowhere.com> wrote in message news:ue****************@TK2MSFTNGP14.phx.gbl... I've got a watchdog program that will restart application that have died and I need know which method to do. I guess I can just spin through the services first and if I find the service that I'm looking for, I can assume it's a service. Otherwise, it's an app.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:el**************@TK2MSFTNGP14.phx.gbl... UJ,
Not really. For what purposes are you trying to figure this out?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"UJ" <fr**@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... > Is there any easy way to tell whether the program that is running is a > service or a win app? > > TIA - Jeff. >
I think that in this case you can broke in two app: a service with the
funcionality and a normal app that is started (or just called) by the
service as well it is necessary (the trick is the service start the app if
it not and interact with then to resolv the user request).
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> escreveu
na mensagem news:Ot**************@TK2MSFTNGP15.phx.gbl... UJ,
No, the functionality can be a service, but you need a separate program to run to interact with the service, most likely using remoting.
Services should not expose user interfaces.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"UJ" <fr**@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... That's true. But I have a program that constantly updates the screen and interacts with the user. That can't be a service can it?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:uM**************@TK2MSFTNGP14.phx.gbl... Jeff,
If you have a need for an application that has died, then I would recommend that you make those applications a service. It seems that you need them to constantly run, so they should be services to begin with.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"UJ" <fr**@nowhere.com> wrote in message news:ue****************@TK2MSFTNGP14.phx.gbl... I've got a watchdog program that will restart application that have died and I need know which method to do. I guess I can just spin through the services first and if I find the service that I'm looking for, I can assume it's a service. Otherwise, it's an app.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:el**************@TK2MSFTNGP14.phx.gbl... > UJ, > > Not really. For what purposes are you trying to figure this out? > > -- > - Nicholas Paldino [.NET/C# MVP] > - mv*@spam.guard.caspershouse.com > > "UJ" <fr**@nowhere.com> wrote in message > news:%2****************@TK2MSFTNGP11.phx.gbl... >> Is there any easy way to tell whether the program that is running is >> a service or a win app? >> >> TIA - Jeff. >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Michael Riggio |
last post by:
Is there a way to have a windows service instantiate a class that is a web
service, which will then be accessible to clients via HTTP?
Thanks,
-Mike
|
by: mailme.faisal |
last post by:
I have created a service that create a process.
The service is running in local system account & it also create the
new process in system account.
In process i have to access network resource ....
|
by: Artur Kowalski |
last post by:
I have a NotifyIcon in my Windows Service project and I am trying to
add a ContextMenu to this NotifyIcon or use some of the mouse events.
Everything isn't working. I think so base class of the...
|
by: SP |
last post by:
Hi All,
I wrote a windows service which is supposed to stop after specified amount
of time. I am calling OnStop() after specified time. OnStop() methods
executed but I dont see the service...
|
by: Doug Bailey |
last post by:
I am trying to control a Windows Service via a Web Service interface.
(I am developing in .NET2003) I am using the ServiceController object
which allows me to read the state of the services with...
|
by: deko |
last post by:
When to use a privileged user thread rather than a windows service?
That's the question raised in a previous post . It was suggested that if the service needs to interact
with a WinForms app...
|
by: tshad |
last post by:
What would be a good way to check programmatically whether a service was
running?
We have a service that dies periodically and I need to check to see if this
service is running. I know how to...
|
by: sonali_reddy123 |
last post by:
Hello all,
I am trying to develop an application which will run as a windows
service.
The application should have Normal options available with service
like start, stop and pause but along...
|
by: dm3281 |
last post by:
I'm really starting to hate writing services -- or trying to, anyway.
Why do I need to rename my project to the service name?
Why do I need to set the "ServiceName" property to my service name?...
|
by: robertgregson |
last post by:
Using C#, .NET3.5, Visual Studio 2008 and WCF on Windows VISTA SP1, I have written a service, service host (as a C# console application) and a client.
The service uses...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: nia12 |
last post by:
Hi there,
I am very new to Access so apologies if any of this is obvious/not clear.
I am creating a data collection tool for health care employees to complete. It consists of a number of...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
|
by: GKJR |
last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
| |