🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Can't stop NT Service

#13482
From: Victor G. Baron
Date: Fri, 10 Oct 2003 17:00
47 lines
1636 bytes
Sorry - some corrections


Created FILE/NEW/SERVICE APPLICATION



Accept defaults but change to No runtime packages or libs

Add the following to the Execute method


while(!Terminated)
{
   Beep();
   Sleep(5000);
}

Compile & save

Install service
Start service
>
beeps every 5 seconds as expected

Stop service

Error: Unable to stop service. Service did not return and error. This could be
internal Widows error or service. If persist - contact admin

I am logged on as Admin

Tried on two different systems with same result.

Have to reboot to stop service

Why is the service not stopping and how can I stop it?


thanx


-- 
Vic Baron
I haven't lost my mind, it's backed up on disk somewhere!
UPDATE!!-- I have lost my mind.
Technical Details
Message-ID: <u5pdov46lpt1gfotbltgrc3lsr31icjpi5@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <meidovo1ugiqu1hnrvm121bthuc0pgl1d6@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e4e83a8cd98f5ec
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-10 10:10:00 PST
From: Victor G. Baron <vgbaron@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Can't stop NT Service
Date: Fri, 10 Oct 2003 10:00:48 -0700
Message-ID: <u5pdov46lpt1gfotbltgrc3lsr31icjpi5@4ax.com>
References: <meidovo1ugiqu1hnrvm121bthuc0pgl1d6@4ax.com>
X-Newsreader: Forte Agent 1.9/32.560
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 64.175.210.162
X-Trace: newsgroups.borland.com 1065805272 64.175.210.162 (10 Oct 2003 10:01:12 -0700)
Lines: 47
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail