🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How can I send command to TService??

#15693
From: Emmanuel
Date: Mon, 16 Jun 2003 09:21
27 lines
1910 bytes
Dear Sir,

I try to write a program, which can send command to the other TService
Program.
like IIS, it can control the IIS Service and FTP Service
would you tell me how can I do that?
I find some function in the help file

BOOL ControlService(
    SC_HANDLE hService, // handle to service
    DWORD dwControl, // control code
    LPSERVICE_STATUS lpServiceStatus  // pointer to service status structure
   );

but how can the TService receive?
I cannot find any event for the TService to support that command
I have thought before, I can you TCP/IP Socket to send command to the
TService, but it will waste one port for each TService

would you tell me the advance method?
Where can I find the resource in the web?
In the help file, it tell me to read the microsolf document
Is that mean, microsoft have more support?
can borland delete such sentence in the future Version?

Emmanuel
emmanuel@erphk.com
Technical Details
Message-ID: <3eed8c0f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,62fea7c3183ba06f,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-16 02:34:32 PST
From: "Emmanuel" <emmanuel@erphk.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How can I send command to TService??
Date: Mon, 16 Jun 2003 17:21:20 +0800
Lines: 30
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: <3eed8c0f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1055755279 202.146.98.71 (16 Jun 2003 02:21:19 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail