5 dprintf("DESCRIPTION:\n");
6 dprintf("\tSC is a command line program used for communicating with\n");
7 dprintf("\tthe Service Control Manager and its services.\n");
9 dprintf("\tsc <server> [command] [service name] <option1> <option2>...\n");
11 dprintf("\tThe optional parameter <server> has the form \"\\ServerName\"\n");
12 dprintf("\tFurther help on commands can be obtained by typing: \"sc [command]\"\n");
13 dprintf("\tService Commands:\n");
14 dprintf("\t query : Queries the status for a service, or\n");
15 dprintf("\t enumerates the status for types of services.\n");
16 dprintf("\t queryex : Queries the extended status for a service, or\n");
17 // dprintf("\t enumerates the status for types of services.\n");
18 dprintf("\t start : Starts a service.\n");
19 dprintf("\t pause : Sends a PAUSE control request to a service.\n");
20 dprintf("\t interrogate : Sends a INTERROGATE control request to a service.\n");
21 // dprintf("\t continue : Sends a CONTINUE control request to a service.\n");
22 dprintf("\t stop : Sends a STOP request to a service.\n");
23 // dprintf("\t config : Changes the configuration of a service (persistant).\n");
24 // dprintf("\t description : Changes the description of a service.\n");
25 // dprintf("\t failure : Changes the actions taken by a service upon failure.\n");
26 // dprintf("\t qc : Queries the configuration information for a service.\n");
27 // dprintf("\t qdescription : Queries the description for a service.\n");
28 // dprintf("\t qfailure : Queries the actions taken by a service upon failure.\n");
29 dprintf("\t delete : Deletes a service (from the registry).\n");
30 dprintf("\t create : Creates a service. (adds it to the registry).\n");
31 dprintf("\t control : Sends a control to a service.\n");
32 // dprintf("\t sdshow : Displays a service's security descriptor.\n");
33 // dprintf("\t sdset : Sets a service's security descriptor.\n");
34 // dprintf("\t GetDisplayName : Gets the DisplayName for a service.\n");
35 // dprintf("\t GetKeyName : Gets the ServiceKeyName for a service.\n");
36 // dprintf("\t EnumDepend : Enumerates Service Dependencies.\n");
38 // dprintf("\tService Name Independant Commands:\n");
39 // dprintf("\t boot : (ok | bad) Indicates whether the last boot should\n");
40 // dprintf("\t be saved as the last-known-good boot configuration\n");
41 // dprintf("\t Lock : Locks the SCM Database\n");
42 // dprintf("\t QueryLock : Queries the LockStatus for the SCM Database\n");
50 dprintf("DESCRIPTION:\n");
51 dprintf(" Starts a service running.\n");
53 dprintf(" sc <server> start [service name] <arg1> <arg2> ...\n");
61 dprintf("DESCRIPTION:\n");
62 dprintf(" Sends a PAUSE control request to a service.\n");
64 dprintf(" sc <server> pause [service name]\n");
69 INT
InterrogateUsage(VOID
)
71 dprintf("DESCRIPTION:\n");
72 dprintf(" Sends an INTERROGATE control request to a service.\n");
74 dprintf(" sc <server> interrogate [service name]\n");
80 INT
ContinueUsage(VOID
)
82 dprintf("DESCRIPTION:\n");
83 dprintf(" Sends an CONTINUE control request to a service.\n");
85 dprintf(" sc <server> continue [service name]\n");
92 dprintf("DESCRIPTION:\n");
93 dprintf(" Sends an STOP control request to a service.\n");
95 dprintf(" sc <server> stop [service name]\n");
100 INT
ConfigUsage(VOID
)
102 dprintf("not yet implemented\n");
108 INT
DescriptionUsage(VOID
)
110 dprintf("DESCRIPTION:\n");
111 dprintf(" Sets the description string for a service.\n");
113 dprintf(" sc <server> description [service name]\n");