Article View: borland.public.cppbuilder.nativeapi
Article #15623ControlService with SERVICE_USER_DEFINED_CONTROL
From: Emmanuel
Date: Mon, 23 Jun 2003 19:11
Date: Mon, 23 Jun 2003 19:11
22 lines
1713 bytes
1713 bytes
Dear All,
For the Function
BOOL ControlService(
SC_HANDLE hService, // handle to service
DWORD dwControl, // control code
LPSERVICE_STATUS lpServiceStatus // pointer to service status structure
);
dwControl
Specifies the requested control code. This value can be one of the standard
control codes in the table, or it can be a user-defined control code in the
range of 128 to 255, inclusive. For user-defined control codes, the hService
handle must have SERVICE_USER_DEFINED_CONTROL access, and the service
defines the action associated with the control code.
if dwControl is set to SERVICE_USER_DEFINED_CONTROL,
how can I manage when TService revceive this message?
I cannot find out this event of TService.
Emmanuel
emmanuel@erphk.com
Technical Details
Message-ID:
<3ef750d4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,391f1729c76c5079,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-23 12:15:28 PST From: "Emmanuel" <emmanuel@erphk.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: ControlService with SERVICE_USER_DEFINED_CONTROL Date: Tue, 24 Jun 2003 03:11:16 +0800 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 202.146.98.71 Message-ID: <3ef750d4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1056395476 202.146.98.71 (23 Jun 2003 12:11:16 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail