Lines Matching refs:svc
243 SC_HANDLE svc, scm; in register_service() local
254 svc = CreateService(scm, WPASVC_NAME, WPASVC_DISPLAY_NAME, in register_service()
259 if (!svc) { in register_service()
267 if (!ChangeServiceConfig2(svc, SERVICE_CONFIG_DESCRIPTION, &sd)) { in register_service()
273 CloseServiceHandle(svc); in register_service()
284 SC_HANDLE svc, scm; in unregister_service() local
295 svc = OpenService(scm, WPASVC_NAME, SERVICE_ALL_ACCESS | DELETE); in unregister_service()
296 if (!svc) { in unregister_service()
302 if (QueryServiceStatus(svc, &status)) { in unregister_service()
306 if (!ControlService(svc, SERVICE_CONTROL_STOP, in unregister_service()
315 if (DeleteService(svc)) { in unregister_service()
321 CloseServiceHandle(svc); in unregister_service()