Lines Matching defs:schService
285 SC_HANDLE schService;
290 schService = OpenServiceW(schSCManager,
298 schService = OpenService(schSCManager, mpm_service_name,
302 if (schService) {
318 || ChangeServiceConfig2W(schService, 1
327 if (ChangeServiceConfig2(schService,
333 CloseServiceHandle(schService);
751 SC_HANDLE schService;
812 schService = OpenServiceW(schSCManager, mpm_service_name_w,
819 schService = OpenService(schSCManager, mpm_service_name,
823 if (!schService) {
835 rc = ChangeServiceConfigW(schService,
847 rc = ChangeServiceConfig(schService,
861 /* !schService aborts configuration below */
862 CloseServiceHandle(schService);
863 schService = NULL;
876 schService = CreateServiceW(schSCManager, // SCManager database
894 schService = CreateService(schSCManager, // SCManager database
909 if (!schService)
920 CloseServiceHandle(schService);
949 SC_HANDLE schService;
967 schService = OpenServiceW(schSCManager, mpm_service_name_w, DELETE);
973 schService = OpenService(schSCManager, mpm_service_name, DELETE);
976 if (!schService) {
992 /* ap_stop_service(schService);
995 if (DeleteService(schService) == 0) {
1003 CloseServiceHandle(schService);
1019 static int signal_service_transition(SC_HANDLE schService, DWORD signal,
1022 if (signal && !ControlService(schService, signal, &globdat.ssStatus))
1027 if (!QueryServiceStatus(schService, &globdat.ssStatus))
1039 SC_HANDLE schService;
1057 schService = OpenServiceW(schSCManager, mpm_service_name_w,
1064 schService = OpenService(schSCManager, mpm_service_name,
1068 if (!schService) {
1077 if (QueryServiceStatus(schService, &globdat.ssStatus)
1082 CloseServiceHandle(schService);
1107 if (StartServiceW(schService, argc, start_argv_w)
1108 && signal_service_transition(schService, 0, /* test only */
1121 if (StartService(schService, argc, start_argv)
1122 && signal_service_transition(schService, 0, /* test only */
1131 CloseServiceHandle(schService);
1150 SC_HANDLE schService;
1167 schService = OpenServiceW(schSCManager, mpm_service_name_w,
1176 schService = OpenService(schSCManager, mpm_service_name,
1182 if (schService == NULL) {
1192 if (!QueryServiceStatus(schService, &globdat.ssStatus)) {
1197 CloseServiceHandle(schService);
1204 CloseServiceHandle(schService);
1214 success = signal_service_transition(schService,
1220 CloseServiceHandle(schService);
1225 success = signal_service_transition(schService,
1230 CloseServiceHandle(schService);