471,336 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,336 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 1184
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Michael Riggio | last post: by
3 posts views Thread by mailme.faisal | last post: by
1 post views Thread by Artur Kowalski | last post: by
9 posts views Thread by SP | last post: by
3 posts views Thread by Doug Bailey | last post: by
4 posts views Thread by tshad | last post: by
5 posts views Thread by sonali_reddy123 | last post: by
5 posts views Thread by dm3281 | last post: by
reply views Thread by rosydwin | last post: by

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.