Lines Matching full:scm
256 SC_HANDLE svc, scm; in register_service() local
261 scm = OpenSCManager(0, 0, SC_MANAGER_CREATE_SERVICE); in register_service()
262 if (!scm) { in register_service()
267 svc = CreateService(scm, WPASVC_NAME, WPASVC_DISPLAY_NAME, in register_service()
274 CloseServiceHandle(scm); in register_service()
287 CloseServiceHandle(scm); in register_service()
297 SC_HANDLE svc, scm; in unregister_service() local
302 scm = OpenSCManager(0, 0, SC_MANAGER_CREATE_SERVICE); in unregister_service()
303 if (!scm) { in unregister_service()
308 svc = OpenService(scm, WPASVC_NAME, SERVICE_ALL_ACCESS | DELETE); in unregister_service()
311 CloseServiceHandle(scm); in unregister_service()
335 CloseServiceHandle(scm); in unregister_service()