Lines Matching refs:scm
262 SC_HANDLE svc, scm;
267 scm = OpenSCManager(0, 0, SC_MANAGER_CREATE_SERVICE);
268 if (!scm) {
273 svc = CreateService(scm, WPASVC_NAME, WPASVC_DISPLAY_NAME,
280 CloseServiceHandle(scm);
293 CloseServiceHandle(scm);
303 SC_HANDLE svc, scm;
308 scm = OpenSCManager(0, 0, SC_MANAGER_CREATE_SERVICE);
309 if (!scm) {
314 svc = OpenService(scm, WPASVC_NAME, SERVICE_ALL_ACCESS | DELETE);
317 CloseServiceHandle(scm);
341 CloseServiceHandle(scm);