Watch, Follow, &
Connect with Us

Please visit our new home

Public Report
Report From: Delphi-BCB/VCL/Services    [ Add a report in this area ]  
Report #:  287   Status: Open
Extend TService with new features
Project:  C++Builder Build #:  10.166
Version:    6.0 Submitted By:   Remy Lebeau (TeamB)
Report Type:  Suggestion / Enhancement Request Date Reported:  3/7/2002 5:19:56 PM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   239206
Resolution: Deferred to Next Rel (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (7 Total Ratings)
3.86 out of 5
Total Votes: 96
TService was originally designed when only Windows NT was available, before 2000 or XP existed.  Both of these OSs add new features to services which TService cannot utilize.  Please update TService to allow for these new service features.

The single biggest requirement is to use the RegisterServiceCtrlHandlerEx() function on Win2000 and higher, instead of RegisterServiceCtrlHandler().
Without RegisterServiceCtrlHandlerEx(), TService cannot use any of the new notifications that are provided by the HandlerEx callback.

Also, QueryServiceConfig2() and ChangeServiceConfig2() are very useful for services as well, such as for reading/setting the service's Description, etc (on pre-2000 systems, the Registry can be accessed directly for that instead).
Steps to Reproduce:

Remy Lebeau (TeamB) at 12/27/2002 11:08:32 AM -
Is anything happening with this?  If TService ever going to be updated?  Or am I just going to have to make my own TService class from scratch?  This is becoming more important to me, especially under XP.

Brian Gochnauer at 12/21/2009 8:08:14 AM -
Keep WAITING. Get this fixed PLEASE. !!
This area (creating services) of Delphi is withering to death!
Nobody is keeps the functionality Microsoft is adding.

Yves Gattegno at 1/14/2010 2:36:34 AM -
We do need a TServiceEx class.

Please consider implementing it.

In the meantime, I'll use my old "Service as Console app" framework in which I control everything, including the calls to RegisterServiceCtrlHandlerEx

It's just a workaround and it's a pity that we have to use that.

Server Response from: ETNACODE01