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