Interactive windows service

G

Guest

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

Ignacio Machin \( .NET/ C# MVP \)

Hi,


Lubomir said:
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,
 
G

Guest

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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 

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