🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to disable windows service programmatically

#11497
From: Remy Lebeau (TeamB)
Date: Fri, 06 Feb 2004 06:01
19 lines
1489 bytes
"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: <40232c12$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40230829@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-05 22:09:44 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40230829@newsgroups.borland.com>
Subject: Re: How to disable windows service programmatically
Date: Thu, 5 Feb 2004 22:01:39 -0800
Lines: 21
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: 67.22.138.253
Message-ID: <40232c12$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076046866 67.22.138.253 (5 Feb 2004 21:54:26 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail