472,992 Members | 3,383 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,992 software developers and data experts.

Am I A Service or a Windows App?

UJ
Is there any easy way to tell whether the program that is running is a
service or a win app?

TIA - Jeff.
Feb 16 '06 #1
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.

Feb 16 '06 #2
UJ
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.


Feb 16 '06 #3
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.



Feb 16 '06 #4
UJ
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.



Feb 16 '06 #5
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.
>



Feb 16 '06 #6
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.
>>
>
>



Feb 16 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
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
3
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 ....
1
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...
9
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...
3
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...
2
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...
4
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...
5
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...
5
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?...
22
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...
0
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...
2
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...
3
NeoPa
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...
1
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...
0
isladogs
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...
3
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...
0
NeoPa
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...
0
isladogs
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...
4
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.