Lines Matching refs:scm

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