🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to disable windows service programmatically

#11386
From: Martin C
Date: Fri, 06 Feb 2004 18:21
28 lines
1714 bytes
Thanks remy, that is all I needed to know.

Best Regards

"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:40232c12$1@newsgroups.borland.com...
>
> "Martin C" <martinc@aol.com> wrote in message
> news:40230829@newsgroups.borland.com...
>
> > I am trying to find out how to disable windows service programmatically
>
> When you say "disable", what are you referring to exactly?
>
> 1) stopping the service if it is already running?  Look at the
OpenService()
> and ControlService() functions.
>
> 2) preventing it from starting at all?  Look at the OpenService() and
> ChangeServiceConfig() functions.
>
> 3) uninstall it altogether?  Look at the OpenService() and DeleteService()
> functions.
>
>
> Gambit
>
>
Technical Details
Message-ID: <40243e01@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40230829@newsgroups.borland.com> <40232c12$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,fffb41454c75226f
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-06 17:35:21 PST
From: "Martin C" <martinc@aol.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40230829@newsgroups.borland.com> <40232c12$1@newsgroups.borland.com>
Subject: Re: How to disable windows service programmatically
Date: Fri, 6 Feb 2004 20:21:41 +0200
Lines: 30
Organization: V Safe
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 81.10.4.238
Message-ID: <40243e01@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076116993 81.10.4.238 (6 Feb 2004 17:23:13 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail