Lines Matching refs:hService
9 SC_HANDLE hService; in RegisterDriver() local
18 hService = CreateServiceW(hSCManager, in RegisterDriver()
32 if (hService) in RegisterDriver()
34 CloseServiceHandle(hService); in RegisterDriver()
59 SC_HANDLE hService; in StartDriver() local
68 hService = OpenServiceW(hSCManager, in StartDriver()
71 if (!hService) in StartDriver()
77 bRet = StartServiceW(hService, 0, NULL); in StartDriver()
87 CloseServiceHandle(hService); in StartDriver()
97 SC_HANDLE hService; in StopDriver() local
107 hService = OpenServiceW(hSCManager, in StopDriver()
110 if (!hService) in StopDriver()
116 bRet = ControlService(hService, in StopDriver()
128 CloseServiceHandle(hService); in StopDriver()
137 SC_HANDLE hService; in UnregisterDriver() local
147 hService = OpenServiceW(hSCManager, in UnregisterDriver()
150 if (!hService) in UnregisterDriver()
156 bRet = DeleteService(hService); in UnregisterDriver()
158 CloseServiceHandle(hService); in UnregisterDriver()