Getting information BACK from a .NET Windows Service

T

Tom

I am writing a Windows service in VB.NET... I am using two applicatons
- the actual service, and then an additional 'control app' (Windows
Forms) that can be used to stop, start, monitor, etc the service.

Using the ServiceController class, I see that it is easy to get a
limited amount of information INTO a service (such as using Custom
Commands). Now let's reverse that - How does one get information OUT of
a Windows service? For instance, I may want it, during the timer event,
to tell me something it did, or pass me back some more information.
('me' being the monitor Forms app, if it is running). This would be
easy in a full Windows Forms app - simply use events; however, that is
not going to work with a servic application.

So how does one get info out of a service application? I know it can be
done because I have seen it done with apps like VNC, SQL Server
Monitor, etc.

I've searched around Google but found nothing useful. Any ideas
appreciated. Thanks in advance.

Tom
 

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