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