Solved

Comms between Service <=> Applet

Posted on 2002-05-25
3
262 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
object oriented javascript web form 8 73
strCopies  challenge 17 73
mapShare challenge 13 68
Installed softare without GUID 6 54
A short article about a problem I had getting the GPS LocationListener working.
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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 …

757 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

23 Experts available now in Live!

Get 1:1 Help Now