[SERVMAN]
[reactos.git] / reactos / base / applications / mscutils / servman / query.c
index f25987e..ff9f3a5 100644 (file)
@@ -35,12 +35,12 @@ GetServiceConfig(LPWSTR lpServiceName)
 
     hSCManager = OpenSCManagerW(NULL,
                                 NULL,
 
     hSCManager = OpenSCManagerW(NULL,
                                 NULL,
-                                SC_MANAGER_ALL_ACCESS);
+                                SC_MANAGER_CONNECT);
     if (hSCManager)
     {
         hService = OpenServiceW(hSCManager,
                                 lpServiceName,
     if (hSCManager)
     {
         hService = OpenServiceW(hSCManager,
                                 lpServiceName,
-                                SERVICE_QUERY_STATUS | SERVICE_ENUMERATE_DEPENDENTS | SERVICE_QUERY_CONFIG);
+                                SERVICE_QUERY_CONFIG);
         if (hService)
         {
             if (!QueryServiceConfigW(hService,
         if (hService)
         {
             if (!QueryServiceConfigW(hService,