Solved

Comms between Service <=> Applet

Posted on 2002-05-25
3
273 Views
Last Modified: 2011-09-20
Can anyone tell me the 'preferred' technique for communicating between an (Win2K) service, and a desktop applet.

An example being a formless service running as automatic, and a user-initiated applet e.g. control panel that manages parameters inthe running service.

I can think of a few ways to do it, but I expect there is a fairly 'standard' method that I can use to be politically correct... !

TIA
mc
0
Comment
Question by:mcoop
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
thegroup earned 50 total points
ID: 7045028
In my experience the best way is saving parameters into registry and restarting the service to load the new parameters.

An application could start, stop and pause a service at any time.

The sequence I use is this:

Configure Parameters
Save parameters into registry
Stop Service
Start Service

My services load all parameters when start, but is perfectly possible to load them on pause-resume.
0
 
LVL 4

Author Comment

by:mcoop
ID: 7045559
ok -

I can do this but I'll have to watch the time, as my service is handling socket traffic and realtime video encoding to a http: stream and to a file (which is partitioned on the second -every 30 minutes).

As long as I have no other actions pending I could do as suggested...  or defer until the next available opportunity (say 2 secs later).

Thanks for the idea.  I'll leave the Q open for a day or two - then award the points.

Cheers
0
 
LVL 4

Author Comment

by:mcoop
ID: 7052383
no other takers!
I'll have to think about this - as the time critical nature of my app is the only obstacle to stop/start

Cheers
MC
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now