Article View: borland.public.cppbuilder.nativeapi
Article #4349Re: Using the systray in services
From: Vladimir Stefanovic
Date: Sun, 19 Feb 2006 12:24
Date: Sun, 19 Feb 2006 12:24
27 lines
1621 bytes
1621 bytes
Hi, There is API function ControlService(), which can 'send some message' to a service from your non-service application. Besides standard: SERVICE_CONTROL_STOP SERVICE_CONTROL_PAUSE SERVICE_CONTROL_CONTINUE SERVICE_CONTROL_INTERROGATE SERVICE_CONTROL_SHUTDOWN it can be used to send user defined message: SERVICE_USER_DEFINED_CONTROL ... and so force the service to do something specific. Mainly, I use user defined way to tell a service to reload the configuration because I changed it with my non-service app. -- Best Regards, Vladimir Stefanovic
Technical Details
Message-ID:
<43f86284$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43f70392@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ee340e11c1cfabb3 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu> Newsgroups: borland.public.cppbuilder.nativeapi References: <43f70392@newsgroups.borland.com> Subject: Re: Using the systray in services Date: Sun, 19 Feb 2006 13:24:05 +0100 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 82.117.212.65 Message-ID: <43f86284$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1140351620 82.117.212.65 (19 Feb 2006 04:20:20 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail