Solved

Comms between Service <=> Applet

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

808 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