Lines Matching refs:scm
191 SC_HANDLE scm;
220 scm = OpenSCManager(NULL, NULL, (int)SC_MANAGER_CREATE_SERVICE);
221 if(!scm) fatal_win(out, "could not OpenSCManager");
223 scm,
238 CloseServiceHandle(scm);
242 CloseServiceHandle(scm);
251 SC_HANDLE scm;
254 scm = OpenSCManager(NULL, NULL, (int)SC_MANAGER_ALL_ACCESS);
255 if(!scm) fatal_win(out, "could not OpenSCManager");
256 sv = OpenService(scm, SERVICE_NAME, DELETE);
258 CloseServiceHandle(scm);
263 CloseServiceHandle(scm);
267 CloseServiceHandle(scm);
277 SC_HANDLE scm;
280 scm = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
281 if(!scm) fatal_win(out, "could not OpenSCManager");
282 sv = OpenService(scm, SERVICE_NAME, SERVICE_START);
284 CloseServiceHandle(scm);
289 CloseServiceHandle(scm);
293 CloseServiceHandle(scm);
302 SC_HANDLE scm;
306 scm = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
307 if(!scm) fatal_win(out, "could not OpenSCManager");
308 sv = OpenService(scm, SERVICE_NAME, SERVICE_STOP);
310 CloseServiceHandle(scm);
315 CloseServiceHandle(scm);
319 CloseServiceHandle(scm);