updates to the sc utility.

svn path=/trunk/; revision=3909
This commit is contained in:
Robert Dickenson 2002-12-28 16:19:22 +00:00
parent 239ec2591c
commit 4d245b3040
5 changed files with 10 additions and 7 deletions

View file

@ -1 +1,5 @@
ping.coff
*.o
*.d
*.exe
*.coff
*.sym

View file

@ -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)) {

View file

@ -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();

View file

@ -1,5 +1,2 @@
acpi.coff
objects
*.d
*.o
*.sym

View file

@ -1 +1,4 @@
zlib.a
zlib.nostrip.a
*.d
*.o