471,319 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Interactive windows service

Hi,

I read that interactive windows services will not be allowed to run under
Wista. I would like to ask what exactly is the interactive service. It is
supposed to be a service that communicates with desktop.

What about the following scenario: A service will create a thread. This
thread will create and run an UI Windows application that manages task bar
and so on on a desktop. This application will communicate with the service:
a/ by pipes
b/ by control codes

So it means the service doesn't communicate with user desktop directly. Is
it an intercative service?

Thank you for answer.

Lubomir.
Dec 21 '05 #1
3 4396
Hi,
"Lubomir" <Lu*****@discussions.microsoft.com> wrote in message
news:EC**********************************@microsof t.com...
Hi,

I read that interactive windows services will not be allowed to run under
Wista. I would like to ask what exactly is the interactive service. It is
supposed to be a service that communicates with desktop.
Yes,
What about the following scenario: A service will create a thread. This
thread will create and run an UI Windows application that manages task bar
and so on on a desktop. This application will communicate with the
service:
a/ by pipes
b/ by control codes
That's not a good idea, why? because the services are started before you can
even login. so there is no "desktop" at that moment.
So it means the service doesn't communicate with user desktop directly. Is
it an intercative service?

What uou can do is put your app in the startup folder so when you login you
run it, it can then communicate with your service using any of the available
methods : pipes/remoting/tcp /ServiceController class

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Dec 21 '05 #2
Thanks for answer, but when that service will communicate with that windows
app will it be an interactive service?
Or, interactive service is only service which communictaes directly with
desktop?

Thanks,

Lubomir

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,
"Lubomir" <Lu*****@discussions.microsoft.com> wrote in message
news:EC**********************************@microsof t.com...
Hi,

I read that interactive windows services will not be allowed to run under
Wista. I would like to ask what exactly is the interactive service. It is
supposed to be a service that communicates with desktop.


Yes,
What about the following scenario: A service will create a thread. This
thread will create and run an UI Windows application that manages task bar
and so on on a desktop. This application will communicate with the
service:
a/ by pipes
b/ by control codes


That's not a good idea, why? because the services are started before you can
even login. so there is no "desktop" at that moment.
So it means the service doesn't communicate with user desktop directly. Is
it an intercative service?

What uou can do is put your app in the startup folder so when you login you
run it, it can then communicate with your service using any of the available
methods : pipes/remoting/tcp /ServiceController class

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Dec 21 '05 #3
Lubomir,

The service should not and in the case of Vista, can not be interactive.
A service is not "interactive". Rather, a service can have the ability to
interact with the desktop. However, it's pretty pointless to try and do
this, because you might not have a desktop to interact with, or you might
have multiple ones (in the case of terminal server).

That being the case, you need an application that will talk to the
service, which has access to the desktop, and can provide user interaction.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Lubomir" <Lu*****@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
Thanks for answer, but when that service will communicate with that
windows
app will it be an interactive service?
Or, interactive service is only service which communictaes directly with
desktop?

Thanks,

Lubomir

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,
"Lubomir" <Lu*****@discussions.microsoft.com> wrote in message
news:EC**********************************@microsof t.com...
> Hi,
>
> I read that interactive windows services will not be allowed to run
> under
> Wista. I would like to ask what exactly is the interactive service. It
> is
> supposed to be a service that communicates with desktop.


Yes,
> What about the following scenario: A service will create a thread. This
> thread will create and run an UI Windows application that manages task
> bar
> and so on on a desktop. This application will communicate with the
> service:
> a/ by pipes
> b/ by control codes


That's not a good idea, why? because the services are started before you
can
even login. so there is no "desktop" at that moment.
> So it means the service doesn't communicate with user desktop directly.
> Is
> it an intercative service?

What uou can do is put your app in the startup folder so when you login
you
run it, it can then communicate with your service using any of the
available
methods : pipes/remoting/tcp /ServiceController class

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Dec 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Microsoft | last post: by
reply views Thread by Shahzad Atta | last post: by
reply views Thread by Vaibhav Podutwar. | last post: by
1 post views Thread by Andreas | 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.