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)) {
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:
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();