[SC] Addendum to 4728157: Add missed values to query errors and usage output. (#387)
authorSerge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
Tue, 20 Feb 2018 18:45:55 +0000 (19:45 +0100)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Tue, 20 Feb 2018 18:45:55 +0000 (19:45 +0100)
base/applications/sc/query.c
base/applications/sc/usage.c

index 54e0427..87b2468 100644 (file)
@@ -191,7 +191,7 @@ ParseQueryArguments(
                 }
                 else
                 {
-                    _tprintf(_T("ERROR following \"type=\"!\nMust be \"driver\" or \"service\"\n"));
+                    _tprintf(_T("ERROR following \"type=\"!\nMust be one of: all, driver, interact, service.\n"));
                     return FALSE;
                 }
 
@@ -220,7 +220,7 @@ ParseQueryArguments(
                 }
                 else
                 {
-                    _tprintf(_T("ERROR following \"state=\"!\nMust be \"inactive\" or \"all\"\n"));
+                    _tprintf(_T("ERROR following \"state=\"!\nMust be one of: active, all, inactive.\n"));
                     return FALSE;
                 }
 
index b1b4a04..ec431f6 100644 (file)
@@ -66,7 +66,7 @@ VOID MainUsage(VOID)
         _T("        the options listed below, the services are enumerated.\n")
         _T("    type=    Type of services to enumerate (driver, service, interact, all)\n")
         _T("             (default = service)\n")
-        _T("    state=   State of services to enumerate (inactive, all)\n")
+        _T("    state=   State of services to enumerate (active, all, inactive)\n")
         _T("             (default = active)\n")
         _T("    bufsize= The size (in bytes) of the enumeration buffer\n")
         _T("             (default = 4096)\n")