Solved

Comms between Service <=> Applet

Posted on 2002-05-25
3
298 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This is about my first experience with programming Arduino.
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 …
Progress

705 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