Lines Matching defs:hSCManager
337 SC_HANDLE hSCManager = OpenSCManager(NULL, NULL,
339 if (!hSCManager) {
344 SC_HANDLE hService = OpenService(hSCManager, BIND_SERVICE_NAME,
363 CloseServiceHandle(hSCManager);
794 SC_HANDLE hSCManager;
819 hSCManager= OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
820 if (!hSCManager)
833 hService = CreateService(hSCManager, BIND_SERVICE_NAME,
844 if (hSCManager)
845 CloseServiceHandle(hSCManager);
852 SC_HANDLE hSCManager;
859 hSCManager= OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
860 if (!hSCManager) {
875 hService = OpenService(hSCManager, BIND_SERVICE_NAME,
880 if (hSCManager)
881 CloseServiceHandle(hSCManager);
896 if (hSCManager)
897 CloseServiceHandle(hSCManager);
904 SC_HANDLE hSCManager;
909 hSCManager= OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
910 if (!hSCManager && uninstall == TRUE) {
916 hService = OpenService(hSCManager, BIND_SERVICE_NAME,
944 if (hSCManager)
945 CloseServiceHandle(hSCManager);
1094 SC_HANDLE hSCManager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
1095 if (!hSCManager) {
1099 SC_HANDLE hBINDSvc = OpenService(hSCManager, BIND_SERVICE_NAME,
1114 SC_HANDLE hSCManager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
1115 if (!hSCManager) {
1119 SC_HANDLE hBINDSvc = OpenService(hSCManager, BIND_SERVICE_NAME,
1133 SC_HANDLE hSCManager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
1134 if (hSCManager) {
1135 SC_HANDLE hBINDSvc = OpenService(hSCManager, BIND_SERVICE_NAME,