Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 8663 invoked by uid 500); 27 Jun 2000 13:53:08 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 8379 invoked from network); 27 Jun 2000 13:53:03 -0000 From: "William A. Rowe, Jr." To: Subject: RE: [Patch 1.3.13] The hold console open patch arrives... Date: Tue, 27 Jun 2000 08:49:53 -0500 Message-ID: <000001bfe03f$066c1010$345985d0@corecomm.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 In-Reply-To: <000001bfdfa0$d19f6970$345985d0@corecomm.net> Importance: Normal X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N > From: William A. Rowe, Jr. [mailto:wrowe@lnd.com] > Sent: Monday, June 26, 2000 2:01 PM > > I looked at the two things I hate in the bugs database and on > the www.servers.ms-windows newsgroup, and though I've always > been with Ken 100% on this, I went back and attacked it. Actually looked at three things... the third being the IconBar app issue... since I have some nearly pure code for it. It was coded for ATL 2.0, but that's a pretty 'simple' windowing system (compared to MFC, which has always put more roadblocks in my way than actually accelerating development :( My concept of a taskbar is some simple way to enumerate all services installed vs. all services running. Services installed is pretty straightforward, simply parsing strstr of the services key for all the Apache.exe string (don't care which directory, of course.) And enumerating the Win9x running servers is easy as well, simply use FindWindow() with the service class and collect window names. But enumerating running NT services will always be trouble, and require either opening each service and quering it's status, or enumerating all running services (bleh.) Neither is pretty. It almost calls for a better way for Win/2000 folks, since that API added a query arg of the load order group. AFAIK, it has no effect on anything but device drivers and boot services, but it would be very handy for just this application, since it allows us to group all running services for fast status queries. Here's the patch... I'll drop the idea until Keith, OtherBill and/or others pipe up some comment about it's worth. Bill btw... the arg list below is for the CreateService() call: Index: src/os/win32/service.c =================================================================== RCS file: /home/cvs/apache-1.3/src/os/win32/service.c,v retrieving revision 1.23 diff -u -r1.23 service.c --- src/os/win32/service.c 2000/06/16 18:31:13 1.23 +++ src/os/win32/service.c 2000/06/27 04:27:07 @@ -394,7 +394,7 @@ SERVICE_AUTO_START, // start type SERVICE_ERROR_NORMAL, // error control type szQuotedPath, // service's binary - NULL, // no load ordering group + "Apache_httpd", // load order group for enumeration NULL, // no tag identifier "Tcpip\0Afd\0", // dependencies NULL, // LocalSystem account