Article View: borland.public.cppbuilder.nativeapi
Article #10648Re: SERVICE_CONTROL_SHUTDOWN missing
From: Remy Lebeau (TeamB)
Date: Tue, 06 Apr 2004 22:03
Date: Tue, 06 Apr 2004 22:03
18 lines
1597 bytes
1597 bytes
"Boba" <Boba@somewhere.world> wrote in message news:4072fd46@newsgroups.borland.com... > just want to add that during shut down > neither SERVICE_CONTROL_SHUTDOWN nor > SERVICE_CONTROL_STOP codes are received. If you read the Win32 API documentation on how to make services in general, you will see that the requirements are very clearly outlined. When you call SetServiceStatus(), you are supposed to specify the notifications that your service can accept. In this case, you need to specify the SERVICE_ACCEPT_STOP and SERVICE_ACCEPT_SHUTDOWN flags in the dwControlsAccepted member of the SERVICE_STATUS structure. Gambit
Technical Details
Message-ID:
<40732940@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4072de9c@newsgroups.borland.com> <4072fd46@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7be5dd2a3cf275bc X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-04-06 15:10:12 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4072de9c@newsgroups.borland.com> <4072fd46@newsgroups.borland.com> Subject: Re: SERVICE_CONTROL_SHUTDOWN missing Date: Tue, 6 Apr 2004 15:03:52 -0700 Lines: 20 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: <40732940@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1081289024 67.22.138.253 (6 Apr 2004 15:03:44 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail