🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ControlService with a user-defined control code

#15624
From: Emmanuel
Date: Mon, 23 Jun 2003 19:15
27 lines
1928 bytes
Dear All,

Sorry, the previous message have some mistake

the follow is updated, thank

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 the hService handle SERVICE_USER_DEFINED_CONTROL,
and dwControl is set to a user-defined control code 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: <3ef751d9@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!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ef750d4$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,391f1729c76c5079
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-23 12:26:35 PST
From: "Emmanuel" <emmanuel@erphk.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ef750d4$1@newsgroups.borland.com>
Subject: Re: ControlService with a user-defined control code
Date: Tue, 24 Jun 2003 03:15:36 +0800
Lines: 31
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: <3ef751d9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1056395737 202.146.98.71 (23 Jun 2003 12:15:37 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail