Lines Matching defs:hService
312 SC_HANDLE hService = CreateService(hSMgrCreate,
322 if (hService)
324 CloseServiceHandle(hService);
359 SC_HANDLE hService = OpenService(hSMgr, SERVICE_NAME, SERVICE_STOP | SERVICE_QUERY_STATUS);
360 if (hService)
366 QueryServiceStatus(hService, &Status);
369 else if (ControlService(hService, SERVICE_CONTROL_STOP, &Status))
375 QueryServiceStatus(hService, &Status);
391 CloseServiceHandle(hService);
428 SC_HANDLE hService = OpenService(hSMgr, SERVICE_NAME, DELETE);
429 if (hService)
434 if (DeleteService(hService))
442 CloseServiceHandle(hService);
477 SC_HANDLE hService = OpenService(hSMgr, SERVICE_NAME, SERVICE_CHANGE_CONFIG);
478 if (hService)
487 if (ChangeServiceConfig(hService,
496 CloseServiceHandle(hService);
507 CloseServiceHandle(hService);
542 SC_HANDLE hService = OpenService(hSMgr, SERVICE_NAME, SERVICE_QUERY_STATUS | SERVICE_START);
543 if (!hService)
555 hService = OpenService(hSMgr, SERVICE_NAME, SERVICE_QUERY_STATUS | SERVICE_START);
562 if (hService)
569 BOOL fRc = QueryServiceStatus(hService, &Status);
582 if (StartService(hService, 0, NULL))
596 QueryServiceStatus(hService, &Status);
603 QueryServiceStatus(hService, &Status);
619 CloseServiceHandle(hService);