Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / December 2005

Tip: Looking for answers? Try searching our database.

Interactive windows service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lubomir - 21 Dec 2005 17:29 GMT
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.
Ignacio Machin ( .NET/ C# MVP ) - 21 Dec 2005 18:48 GMT
Hi,

> 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,

Signature

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

Lubomir - 21 Dec 2005 19:31 GMT
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

> Hi,
>
[quoted text clipped - 24 lines]
>
> cheers,
Nicholas Paldino [.NET/C# MVP] - 21 Dec 2005 19:46 GMT
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.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Thanks for answer, but when that service will communicate with that
> windows
[quoted text clipped - 41 lines]
>>
>> cheers,

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.