mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
updates to the sc utility.
svn path=/trunk/; revision=3909
This commit is contained in:
parent
239ec2591c
commit
4d245b3040
5 changed files with 10 additions and 7 deletions
|
@ -1 +1,5 @@
|
|||
ping.coff
|
||||
*.o
|
||||
*.d
|
||||
*.exe
|
||||
*.coff
|
||||
*.sym
|
||||
|
|
|
@ -180,6 +180,7 @@ int sc_main(const sc_cmd_entry* cmd_entry,
|
|||
if (!dwDesiredAccess) dwDesiredAccess = SC_MANAGER_CONNECT + GENERIC_READ;
|
||||
|
||||
hSCManager = OpenSCManagerA(sc_machine_name, NULL, dwDesiredAccess);
|
||||
//hSCManager = OpenSCManagerW(NULL, NULL, dwDesiredAccess);
|
||||
if (hSCManager != NULL) {
|
||||
result = cmd_entry->funcptr(hSCManager, cmd_entry->sc_cmd, sc_cmd_arg);
|
||||
if (!CloseServiceHandle(hSCManager)) {
|
||||
|
|
|
@ -87,8 +87,6 @@ int EnumServicesInfo(void)
|
|||
|
||||
int sc_query(SC_HANDLE hSCManager, SC_CMDS sc_cmd, char* argv[])
|
||||
{
|
||||
dprintf("sc_query(%x, %d, %s) - called.\n", hSCManager, sc_cmd, argv[0]);
|
||||
|
||||
switch (sc_cmd) {
|
||||
case SC_CMD_QUERY:
|
||||
case SC_CMD_QUERYEX:
|
||||
|
@ -98,7 +96,7 @@ int sc_query(SC_HANDLE hSCManager, SC_CMDS sc_cmd, char* argv[])
|
|||
case SC_CMD_SDSHOW:
|
||||
case SC_CMD_GETDISPLAYNAME:
|
||||
case SC_CMD_GETKEYNAME:
|
||||
dprintf(" - not implemented.\n");
|
||||
dprintf("sc_query(%x, %d, %s) - command not implemented.\n", hSCManager, sc_cmd, argv[0]);
|
||||
break;
|
||||
case SC_CMD_ENUMDEPEND:
|
||||
return EnumServicesInfo();
|
||||
|
|
|
@ -1,5 +1,2 @@
|
|||
acpi.coff
|
||||
objects
|
||||
*.d
|
||||
*.o
|
||||
*.sym
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
zlib.a
|
||||
zlib.nostrip.a
|
||||
*.d
|
||||
*.o
|
||||
|
|
Loading…
Reference in a new issue