Home
last modified time | relevance | path

Searched refs:hService (Results 1 – 25 of 43) sorted by relevance

12

/reactos/modules/rostests/win32/DriverLoading/Application/
H A Dumode.c9 SC_HANDLE hService; in RegisterDriver() local
32 if (hService) in RegisterDriver()
59 SC_HANDLE hService; in StartDriver() local
71 if (!hService) in StartDriver()
87 CloseServiceHandle(hService); in StartDriver()
97 SC_HANDLE hService; in StopDriver() local
110 if (!hService) in StopDriver()
128 CloseServiceHandle(hService); in StopDriver()
137 SC_HANDLE hService; in UnregisterDriver() local
150 if (!hService) in UnregisterDriver()
[all …]
/reactos/base/applications/sc/
H A Ddescription.c15 SC_HANDLE hService = NULL; in QueryDescription() local
35 if (hService == NULL) in QueryDescription()
42 if (!QueryServiceConfig2(hService, in QueryDescription()
65 if (!QueryServiceConfig2(hService, in QueryDescription()
89 if (hService) in QueryDescription()
90 CloseServiceHandle(hService); in QueryDescription()
102 SC_HANDLE hService = NULL; in SetDescription() local
121 if (hService == NULL) in SetDescription()
130 if (!ChangeServiceConfig2(hService, in SetDescription()
145 if (hService) in SetDescription()
[all …]
H A Dfailure.c14 SC_HANDLE hService = NULL; in QueryFailure() local
34 if (hService == NULL) in QueryFailure()
40 if (!QueryServiceConfig2(hService, in QueryFailure()
61 if (!QueryServiceConfig2(hService, in QueryFailure()
110 if (hService) in QueryFailure()
111 CloseServiceHandle(hService); in QueryFailure()
125 SC_HANDLE hService = NULL; in SetFailure() local
149 hService = OpenService(hManager, in SetFailure()
152 if (hService == NULL) in SetFailure()
181 if (hService) in SetFailure()
[all …]
H A Dconfig.c15 SC_HANDLE hService = NULL; in QueryConfig() local
37 if (hService == NULL) in QueryConfig()
44 if (!QueryServiceConfig(hService, in QueryConfig()
66 if (!QueryServiceConfig(hService, in QueryConfig()
190 if (hService) in QueryConfig()
191 CloseServiceHandle(hService); in QueryConfig()
202 SC_HANDLE hService = NULL; in SetConfig() local
236 hService = OpenService(hManager, in SetConfig()
239 if (hService == NULL) in SetConfig()
269 if (hService) in SetConfig()
[all …]
H A Dsdshow.c15 SC_HANDLE hService = NULL; in SdShow() local
35 hService = OpenService(hManager, ServiceName, READ_CONTROL); in SdShow()
36 if (hService == NULL) in SdShow()
43 if (!QueryServiceObjectSecurity(hService, in SdShow()
66 if (!QueryServiceObjectSecurity(hService, in SdShow()
100 if (hService) in SdShow()
101 CloseServiceHandle(hService); in SdShow()
H A Ddepend.c15 SC_HANDLE hService = NULL; in EnumDepend() local
32 hService = OpenService(hManager, ServiceName, SERVICE_ENUMERATE_DEPENDENTS); in EnumDepend()
33 if (hService == NULL) in EnumDepend()
40 if (!EnumDependentServices(hService, in EnumDepend()
64 if (!EnumDependentServices(hService, in EnumDepend()
93 if (hService) in EnumDepend()
94 CloseServiceHandle(hService); in EnumDepend()
H A Dsdset.c15 SC_HANDLE hService = NULL; in SdSet() local
34 hService = OpenService(hManager, ServiceName, WRITE_DAC); in SdSet()
35 if (hService == NULL) in SdSet()
52 if (!SetServiceObjectSecurity(hService, in SdSet()
68 if (hService) in SdSet()
69 CloseServiceHandle(hService); in SdSet()
H A Dcontrol.c19 SC_HANDLE hService = NULL; in Control() local
78 hService = OpenService(hSCManager, in Control()
81 if (hService == NULL) in Control()
88 if (!ControlService(hService, in Control()
111 if (hService) in Control()
112 CloseServiceHandle(hService); in Control()
/reactos/base/services/audiosrv/
H A Dservices.c15 SC_HANDLE hService, in WaitForService() argument
24 …if (!QueryServiceStatusEx(hService, SC_STATUS_PROCESS_INFO, (LPBYTE)&Info, sizeof(SERVICE_STATUS_P… in WaitForService()
37 DPRINT("Timeout while waiting for service to become ready %p\n", hService); in WaitForService()
48 SC_HANDLE hService; in StartAudioService() local
51 hService = OpenService(hSCManager, ServiceName, SERVICE_ALL_ACCESS); in StartAudioService()
52 if (!hService) in StartAudioService()
58 if (!StartService(hService, 0, NULL)) in StartAudioService()
61 CloseServiceHandle(hService); in StartAudioService()
65 ret = WaitForService(hService, RetryCount); in StartAudioService()
67 CloseServiceHandle(hService); in StartAudioService()
/reactos/dll/win32/wlnotify/
H A Dschedsvc.c22 SC_HANDLE hService = NULL; in SchedEventLogoff()
44 hService = OpenServiceW(hManager, L"Schedule", SERVICE_USER_DEFINED_CONTROL); in SchedEventLogoff()
51 if (!ControlService(hService, 129, &ServiceStatus)) in SchedEventLogoff()
57 if (hService != NULL) in SchedEventLogoff()
58 CloseServiceHandle(hService); in SchedEventLogoff()
72 SC_HANDLE hService = NULL; in SchedStartShell() local
92 hService = OpenServiceW(hManager, L"Schedule", SERVICE_USER_DEFINED_CONTROL); in SchedStartShell()
99 if (!ControlService(hService, 128, &ServiceStatus)) in SchedStartShell()
105 if (hService != NULL) in SchedStartShell()
106 CloseServiceHandle(hService); in SchedStartShell()
/reactos/modules/rostests/apitests/localspl/
H A Dtests.c52 SC_HANDLE hService = NULL; in _RunRemoteTest() local
98 hService = OpenServiceW(hSC, L"spooler", SERVICE_QUERY_STATUS); in _RunRemoteTest()
99 if (!hService) in _RunRemoteTest()
105 if (!QueryServiceStatus(hService, &ServiceStatus)) in _RunRemoteTest()
117 CloseServiceHandle(hService); in _RunRemoteTest()
120 hService = OpenServiceW(hSC, SERVICE_NAME, SERVICE_ALL_ACCESS); in _RunRemoteTest()
121 if (!hService) in _RunRemoteTest()
127 if (!hService) in _RunRemoteTest()
156 if (!StartServiceW(hService, 0, NULL)) in _RunRemoteTest()
199 if (hService) in _RunRemoteTest()
[all …]
/reactos/base/applications/mscutils/servman/
H A Ddependencies_tv2.c16 HANDLE hService; in TV2_HasDependantServices() local
25 hService = OpenServiceW(hSCManager, in TV2_HasDependantServices()
28 if (hService) in TV2_HasDependantServices()
31 if (!EnumDependentServices(hService, in TV2_HasDependantServices()
45 CloseServiceHandle(hService); in TV2_HasDependantServices()
59 SC_HANDLE hService; in TV2_GetDependants() local
70 hService = OpenServiceW(hSCManager, in TV2_GetDependants()
73 if (hService) in TV2_GetDependants()
76 if (!EnumDependentServicesW(hService, in TV2_GetDependants()
90 if (EnumDependentServicesW(hService, in TV2_GetDependants()
[all …]
H A Ddependencies_tv1.c13 TV1_GetDependants(SC_HANDLE hService) in TV1_GetDependants() argument
21 if (!QueryServiceConfigW(hService, in TV1_GetDependants()
32 if (QueryServiceConfigW(hService, in TV1_GetDependants()
87 SC_HANDLE hService; in TV1_AddDependantsToTree() local
99 hService = OpenServiceW(hSCManager, in TV1_AddDependantsToTree()
102 if (hService) in TV1_AddDependantsToTree()
105 lpDependants = TV1_GetDependants(hService); in TV1_AddDependantsToTree()
172 CloseServiceHandle(hService); in TV1_AddDependantsToTree()
H A Dcontrol.c23 SC_HANDLE hService; in DoControlService() local
55 hService = OpenServiceW(hSCManager, in DoControlService()
58 if (!hService) in DoControlService()
66 Result = ControlService(hService, in DoControlService()
78 Result = QueryServiceStatusEx(hService, in DoControlService()
111 if (!QueryServiceStatusEx(hService, in DoControlService()
159 CloseServiceHandle(hService); in DoControlService()
H A Dstop.c22 SC_HANDLE hService; in DoStopService() local
35 hService = OpenServiceW(hSCManager, in DoStopService()
38 if (!hService) in DoStopService()
56 if (ControlService(hService, in DoStopService()
86 if (QueryServiceStatusEx(hService, in DoStopService()
119 CloseServiceHandle(hService); in DoStopService()
H A Dstart.c23 SC_HANDLE hService; in DoStartService() local
104 hService = OpenServiceW(hSCManager, in DoStartService()
107 if (!hService) in DoStartService()
117 Result = StartServiceW(hService, in DoStartService()
134 Result = QueryServiceStatusEx(hService, in DoStartService()
169 if (!QueryServiceStatusEx(hService, in DoStartService()
212 CloseServiceHandle(hService); in DoStartService()
/reactos/modules/rostests/apitests/advapi32/
H A DQueryServiceConfig2.c112 bError = QueryServiceConfig2W(hService, in QueryConfig2W()
135 bError = QueryServiceConfig2W(hService, in QueryConfig2W()
305 bError = QueryServiceConfig2A(hService, in QueryConfig2A()
488 SC_HANDLE hService = NULL; in Test_QueryServiceConfig2W() local
504 if (!hService) in Test_QueryServiceConfig2W()
519 if (hService) in Test_QueryServiceConfig2W()
520 CloseServiceHandle(hService); in Test_QueryServiceConfig2W()
529 SC_HANDLE hService = NULL; in Test_QueryServiceConfig2A() local
545 if (!hService) in Test_QueryServiceConfig2A()
560 if (hService) in Test_QueryServiceConfig2A()
[all …]
H A DServiceEnv.c174 SC_HANDLE hService = NULL; in my_test_server() local
193 if (!hService) in my_test_server()
200 if (!StartServiceW(hService, 0, NULL)) in my_test_server()
211 res = QueryServiceStatus(hService, &ServiceStatus); in my_test_server()
217 res = ControlService(hService, SERVICE_CONTROL_STOP, &ServiceStatus); in my_test_server()
230 if (!ChangeServiceConfigW(hService, in my_test_server()
243 if (!StartServiceW(hService, 0, NULL)) in my_test_server()
254 res = QueryServiceStatus(hService, &ServiceStatus); in my_test_server()
271 if (hService) in my_test_server()
273 res = DeleteService(hService); in my_test_server()
[all …]
H A DCreateService.c10 static int MakeService(SC_HANDLE hScm, const wchar_t *serviceName, SC_HANDLE *hService, DWORD *tag) in MakeService() argument
18 *hService = CreateServiceW( in MakeService()
33 ok(*hService != NULL, "Failed to create service, error=0x%08lx\n", GetLastError()); in MakeService()
34 if (!*hService) in MakeService()
65 static void DestroyService(SC_HANDLE hService) in DestroyService() argument
69 if (!hService) in DestroyService()
72 ret = DeleteService(hService); in DestroyService()
77 CloseServiceHandle(hService); in DestroyService()
/reactos/base/applications/msconfig/
H A Dsrvpage.c83 SC_HANDLE hService; in GetServices() local
157 if (hService != NULL) in GetServices()
168 CloseServiceHandle(hService); in GetServices()
177 CloseServiceHandle(hService); in GetServices()
185 CloseServiceHandle(hService); in GetServices()
214 CloseServiceHandle(hService); in GetServices()
222 CloseServiceHandle(hService); in GetServices()
230 CloseServiceHandle(hService); in GetServices()
265 CloseServiceHandle(hService); in GetServices()
273 CloseServiceHandle(hService); in GetServices()
[all …]
/reactos/dll/win32/advapi32/service/
H A Dscm.c694 SC_HANDLE hService = NULL; in CreateServiceA() local
802 return hService; in CreateServiceA()
826 SC_HANDLE hService = NULL; in CreateServiceW() local
911 return hService; in CreateServiceW()
921 DeleteService(SC_HANDLE hService) in DeleteService() argument
926 hService); in DeleteService()
2116 SC_HANDLE hService = NULL; in OpenServiceA() local
2150 return hService; in OpenServiceA()
2164 SC_HANDLE hService = NULL; in OpenServiceW() local
2198 return hService; in OpenServiceW()
[all …]
/reactos/base/applications/network/net/
H A DcmdStart.c18 SC_HANDLE hService = NULL; in EnumerateRunningServices() local
82 if (hService != NULL) in EnumerateRunningServices()
83 CloseServiceHandle(hService); in EnumerateRunningServices()
103 SC_HANDLE hService = NULL; in StartOneService() local
119 hService = OpenServiceW(hManager, in StartOneService()
122 if (hService == NULL) in StartOneService()
144 if (!StartServiceW(hService, in StartOneService()
156 if (hService != NULL) in StartOneService()
157 CloseServiceHandle(hService); in StartOneService()
H A DcmdPause.c15 SC_HANDLE hService = NULL; in cmdPause() local
48 hService = OpenService(hManager, argv[2], SERVICE_PAUSE_CONTINUE); in cmdPause()
49 if (hService == NULL) in cmdPause()
56 if (!ControlService(hService, SERVICE_CONTROL_PAUSE, &status)) in cmdPause()
62 if (hService != NULL) in cmdPause()
63 CloseServiceHandle(hService); in cmdPause()
H A DcmdContinue.c15 SC_HANDLE hService = NULL; in cmdContinue() local
48 hService = OpenService(hManager, argv[2], SERVICE_PAUSE_CONTINUE); in cmdContinue()
49 if (hService == NULL) in cmdContinue()
56 if (!ControlService(hService, SERVICE_CONTROL_CONTINUE, &status)) in cmdContinue()
63 if (hService != NULL) in cmdContinue()
64 CloseServiceHandle(hService); in cmdContinue()
H A DcmdStop.c15 SC_HANDLE hService = NULL; in cmdStop() local
51 hService = OpenServiceW(hManager, in cmdStop()
54 if (hService == NULL) in cmdStop()
61 if (!ControlService(hService, SERVICE_CONTROL_STOP, &ServiceStatus)) in cmdStop()
69 if (hService != NULL) in cmdStop()
70 CloseServiceHandle(hService); in cmdStop()

12