httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@lnd.com>
Subject RE: [Patch 1.3.13] The hold console open patch arrives...
Date Tue, 27 Jun 2000 13:49:53 GMT
> 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

Mime
View raw message