🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15154

Re: Stop and startng a service

#15154
From: Giuliano
Date: Thu, 17 Jul 2003 06:47
24 lines
1726 bytes
On Thu, 17 Jul 2003 08:44:23 +0200, Giuliano <gcardinali@remove.adhoc.net>
wrote:

>On Wed, 16 Jul 2003 22:53:44 -0700, "Maurice Anderson"
><mauriceanderson@hotmail.com> wrote:
>
>>Hello, does anyone know how to programatically stop and start a service?  I
>>want to stop and start the Tcp/ip service for an app I am writing.  Any tips
>>or suggestions that can point me in the right direction would be greatly
>>appreciated.  Any code examples is also welcome.
>>
>>Thanks -M-
>>
>
>Have a look at this unit....
>
>http://81.72.236.130/SvcCtrlMngr.zip
>
>Giuliano

Ops, I forgot to mention that you have to use (or have a look at) the class
TServiceControlManager. 

Giuliano
Technical Details
Message-ID: <rghchv4m3v4qqrv0uqpg359inhsjm8i4kv@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f163941$1@newsgroups.borland.com> <mdhchv8i6dsqrsemn6heka3sk41uj4cckg@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,80e98d9661a7c48a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-17 00:09:24 PST
From: Giuliano <gcardinali@remove.adhoc.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Stop and startng a service
Date: Thu, 17 Jul 2003 08:47:37 +0200
Message-ID: <rghchv4m3v4qqrv0uqpg359inhsjm8i4kv@4ax.com>
References: <3f163941$1@newsgroups.borland.com> <mdhchv8i6dsqrsemn6heka3sk41uj4cckg@4ax.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.72.236.130
X-Trace: newsgroups.borland.com 1058424454 81.72.236.130 (16 Jul 2003 23:47:34 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail