Index: ApacheMonitor.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/support/win32/ApacheMonitor.c,v
retrieving revision 1.20
diff -u -3 -r1.20 ApacheMonitor.c
--- ApacheMonitor.c 16 Jun 2002 19:02:58 -0000  1.20
+++ ApacheMonitor.c 9 Jul 2002 04:02:51 -0000
@@ -780,13 +780,13 @@
     else
     {
         schSCManager = OpenSCManager(szComputerName, NULL,
-                                     SC_MANAGER_ALL_ACCESS);
+                                     GENERIC_EXECUTE);
         if (!schSCManager) {
             return FALSE;
         }
 
         schService = OpenService(schSCManager, szServiceName, 
-                                 SERVICE_ALL_ACCESS);
+                                 GENERIC_EXECUTE);
         if (schService != NULL)
         {
             retValue = FALSE;
@@ -937,7 +937,7 @@
     {
         dwPid = 0;
         schSCManager = OpenSCManager(szComputerName, NULL,
-                                     SC_MANAGER_ALL_ACCESS);
+                                     GENERIC_READ);
         if (!schSCManager) {
             return FALSE;
         }
