Home
last modified time | relevance | path

Searched refs:dwCurrentState (Results 1 – 25 of 71) sorted by relevance

123

/reactos/modules/rostests/apitests/advapi32/
H A DServiceEnv.c18 report_service_status(DWORD dwCurrentState, in report_service_status() argument
26 status.dwCurrentState = dwCurrentState; in report_service_status()
33 if ( (dwCurrentState == SERVICE_START_PENDING) || in report_service_status()
34 (dwCurrentState == SERVICE_STOP_PENDING) || in report_service_status()
35 (dwCurrentState == SERVICE_STOPPED) ) in report_service_status()
45 if ( (dwCurrentState == SERVICE_RUNNING) || (dwCurrentState == SERVICE_STOPPED) ) in report_service_status()
214 …ok(ServiceStatus.dwCurrentState == SERVICE_STOPPED, "ServiceStatus.dwCurrentState = %lx\n", Servic… in my_test_server()
218 if (!res && ServiceStatus.dwCurrentState != SERVICE_STOPPED && in my_test_server()
219 ServiceStatus.dwCurrentState != SERVICE_STOP_PENDING && in my_test_server()
257 …ok(ServiceStatus.dwCurrentState == SERVICE_STOPPED, "ServiceStatus.dwCurrentState = %lx\n", Servic… in my_test_server()
[all …]
H A DServiceNetwork.c21 report_service_status(DWORD dwCurrentState, in report_service_status() argument
29 status.dwCurrentState = dwCurrentState; in report_service_status()
36 if ( (dwCurrentState == SERVICE_START_PENDING) || in report_service_status()
37 (dwCurrentState == SERVICE_STOP_PENDING) || in report_service_status()
38 (dwCurrentState == SERVICE_STOPPED) ) in report_service_status()
48 if ( (dwCurrentState == SERVICE_RUNNING) || (dwCurrentState == SERVICE_STOPPED) ) in report_service_status()
365 …ok(ServiceStatus.dwCurrentState == SERVICE_STOPPED, "ServiceStatus.dwCurrentState = %lx\n", Servic… in my_test_server()
369 if (!res && ServiceStatus.dwCurrentState != SERVICE_STOPPED && in my_test_server()
370 ServiceStatus.dwCurrentState != SERVICE_STOP_PENDING && in my_test_server()
408 …ok(ServiceStatus.dwCurrentState == SERVICE_STOPPED, "ServiceStatus.dwCurrentState = %lx\n", Servic… in my_test_server()
[all …]
H A DServiceArgs.c72 status.dwCurrentState = SERVICE_STOP_PENDING; in service_handler()
76 status.dwCurrentState = SERVICE_RUNNING; in service_handler()
92 status.dwCurrentState = SERVICE_RUNNING; in service_main_common()
103 status.dwCurrentState = SERVICE_STOPPED; in service_main_common()
309 } while (res && status.dwCurrentState != SERVICE_STOPPED); in test_startA()
311 …ok(status.dwCurrentState == SERVICE_STOPPED, "status.dwCurrentState = %lx\n", status.dwCurrentStat… in test_startA()
329 } while (res && status.dwCurrentState != SERVICE_STOPPED); in test_startW()
331 …ok(status.dwCurrentState == SERVICE_STOPPED, "status.dwCurrentState = %lx\n", status.dwCurrentStat… in test_startW()
/reactos/modules/rostests/winetests/services/
H A Dservice.c205 status.dwCurrentState = SERVICE_RUNNING; in service_handler()
232 status.dwCurrentState = SERVICE_RUNNING; in service_main()
245 status.dwCurrentState = SERVICE_STOPPED; in service_main()
307 status.dwCurrentState = SERVICE_RUNNING; in no_stop_handler()
327 status.dwCurrentState = SERVICE_RUNNING; in no_stop_main()
466 …ok(status.dwCurrentState == SERVICE_RUNNING, "status.dwCurrentState = %x\n", status.dwCurrentState in test_service()
477 …ok(status2.dwCurrentState == SERVICE_RUNNING, "status2.dwCurrentState = %x\n", status2.dwCurrentSt… in test_service()
521 …ok(status.dwCurrentState == SERVICE_RUNNING, "status.dwCurrentState = %x\n", status.dwCurrentState in test_no_stop()
532 …ok(status2.dwCurrentState == SERVICE_RUNNING, "status2.dwCurrentState = %x\n", status2.dwCurrentSt… in test_no_stop()
542 ok(status.dwCurrentState==SERVICE_STOPPED || status.dwCurrentState==SERVICE_STOP_PENDING, in test_no_stop()
[all …]
/reactos/base/services/audiosrv/
H A Dmain.c54 service_status.dwCurrentState = SERVICE_STOP_PENDING; in ServiceControlHandler()
58 service_status.dwCurrentState = SERVICE_STOPPED; in ServiceControlHandler()
105 service_status.dwCurrentState = SERVICE_START_PENDING; in ServiceMain()
113 service_status.dwCurrentState = SERVICE_STOPPED; in ServiceMain()
147 service_status.dwCurrentState = SERVICE_STOPPED; in ServiceMain()
155 service_status.dwCurrentState = SERVICE_RUNNING; in ServiceMain()
/reactos/base/system/msiexec/
H A Dservice.c42 static BOOL UpdateSCMStatus(DWORD dwCurrentState, DWORD dwWin32ExitCode, in UpdateSCMStatus() argument
48 status.dwCurrentState = dwCurrentState; in UpdateSCMStatus()
50 if (dwCurrentState == SERVICE_START_PENDING in UpdateSCMStatus()
51 || dwCurrentState == SERVICE_STOP_PENDING in UpdateSCMStatus()
52 || dwCurrentState == SERVICE_STOPPED) in UpdateSCMStatus()
/reactos/base/system/services/
H A Ddriver.c254 dwPreviousState = lpService->Status.dwCurrentState; in ScmGetDriverStatus()
257 lpService->Status.dwCurrentState = SERVICE_RUNNING; in ScmGetDriverStatus()
276 if (lpService->Status.dwCurrentState == SERVICE_STOP_PENDING) in ScmGetDriverStatus()
280 lpService->Status.dwCurrentState = SERVICE_STOPPED; in ScmGetDriverStatus()
285 else if (lpService->Status.dwCurrentState == SERVICE_STOPPED) in ScmGetDriverStatus()
292 lpService->Status.dwCurrentState = SERVICE_STOPPED; in ScmGetDriverStatus()
323 pService->Status.dwCurrentState = SERVICE_RUNNING; in ScmStartDriver()
353 if (lpService->Status.dwCurrentState != SERVICE_RUNNING) in ScmControlDriver()
369 lpService->Status.dwCurrentState = SERVICE_STOP_PENDING; in ScmControlDriver()
/reactos/base/services/nfsd/
H A Dservice.c218 ReportStatusToSCMgr(ssStatus.dwCurrentState, NO_ERROR, 0); in service_ctrl()
240 BOOL ReportStatusToSCMgr(DWORD dwCurrentState, in ReportStatusToSCMgr() argument
250 if (dwCurrentState == SERVICE_START_PENDING) in ReportStatusToSCMgr()
255 ssStatus.dwCurrentState = dwCurrentState; in ReportStatusToSCMgr()
259 if ( ( dwCurrentState == SERVICE_RUNNING ) || in ReportStatusToSCMgr()
260 ( dwCurrentState == SERVICE_STOPPED ) ) in ReportStatusToSCMgr()
440 if ( ssStatus.dwCurrentState == SERVICE_STOP_PENDING ) in CmdRemoveService()
449 if ( ssStatus.dwCurrentState == SERVICE_STOPPED ) in CmdRemoveService()
/reactos/dll/win32/qmgr/
H A Dservice.c34 UpdateStatus(DWORD dwCurrentState, DWORD dwWin32ExitCode, DWORD dwWaitHint) in UpdateStatus() argument
37 status.dwCurrentState = dwCurrentState; in UpdateStatus()
38 if (dwCurrentState == SERVICE_START_PENDING) in UpdateStatus()
68 UpdateStatus(status.dwCurrentState, NO_ERROR, 0); in ServiceHandler()
/reactos/base/services/telnetd/
H A Dserviceentry.c50 status.dwCurrentState = SERVICE_STOP_PENDING; in service_handler()
57 status.dwCurrentState = SERVICE_RUNNING; in service_handler()
76 status.dwCurrentState = SERVICE_RUNNING; in serv_main()
89 status.dwCurrentState = SERVICE_STOPPED; in serv_main()
/reactos/base/services/w32time/
H A Dw32time.c223 ServiceStatus.dwCurrentState = SERVICE_STOP_PENDING; in ControlHandler()
251 ServiceStatus.dwCurrentState = SERVICE_START_PENDING; in W32TmServiceMain()
270 ServiceStatus.dwCurrentState = SERVICE_STOPPED; in W32TmServiceMain()
281 ServiceStatus.dwCurrentState = SERVICE_RUNNING; in W32TmServiceMain()
316 ServiceStatus.dwCurrentState = SERVICE_STOPPED; in W32TmServiceMain()
329 ServiceStatus.dwCurrentState = SERVICE_STOPPED; in W32TmServiceMain()
/reactos/base/services/rpcss/
H A Drpcss_main.c112 status.dwCurrentState = SERVICE_STOP_PENDING; in service_handler()
119 status.dwCurrentState = SERVICE_RUNNING; in service_handler()
143 status.dwCurrentState = SERVICE_RUNNING; in ServiceMain()
165 status.dwCurrentState = SERVICE_STOPPED; in ServiceMain()
/reactos/modules/rostests/apitests/ntdll/
H A DNtApphelpCacheControl.c230 status.dwCurrentState = SERVICE_STOP_PENDING; in service_handler()
251 status.dwCurrentState = SERVICE_RUNNING; in service_handler()
264 status.dwCurrentState = SERVICE_RUNNING; in service_main()
270 status.dwCurrentState = SERVICE_STOPPED; in service_main()
299 while (ssp->dwCurrentState != Status) in WaitService()
311 Status, ssp->dwCurrentState); in WaitService()
/reactos/modules/rostests/kmtests/kmtest/
H A Dservice.c172 while (ServiceStatus.dwCurrentState != ExpectedServiceState) in KmtEnsureServiceState()
185 if (ServiceStatus.dwCurrentState != ExpectedServiceState) in KmtEnsureServiceState()
189 ServiceStatus.dwCurrentState, KmtGetServiceStateAsString(ServiceStatus.dwCurrentState), in KmtEnsureServiceState()
/reactos/modules/rosapps/templates/skel_service/
H A DServiceMain.c53 pServInfo->servStatus.dwCurrentState = NewStatus; in UpdateStatus()
58 pServInfo->servStatus.dwCurrentState, in UpdateStatus()
161 servInfo.servStatus.dwCurrentState = SERVICE_STOPPED; in ServiceMain()
/reactos/base/applications/mscutils/servman/
H A Dstop.c66 while (ServiceStatus.dwCurrentState != SERVICE_STOPPED) in DoStopService()
109 if (ServiceStatus.dwCurrentState == SERVICE_STOPPED) in DoStopService()
H A Dcontrol.c91 while (ServiceStatus.dwCurrentState != ReqState) in DoControlService()
149 if (ServiceStatus.dwCurrentState == ReqState) in DoControlService()
H A Dstart.c147 while (ServiceStatus.dwCurrentState != SERVICE_RUNNING) in DoStartService()
206 if (ServiceStatus.dwCurrentState == SERVICE_RUNNING) in DoStartService()
/reactos/base/services/wlansvc/
H A Dwlansvc.c35 SvcStatus.dwCurrentState = NewStatus; in UpdateServiceStatus()
72 SvcStatus.dwCurrentState = SERVICE_START_PENDING; in ServiceMain()
/reactos/base/applications/sc/
H A Dprint.c70 (unsigned int)pStatus->dwCurrentState); in PrintServiceStatus()
72 switch (pStatus->dwCurrentState) in PrintServiceStatus()
/reactos/base/services/tcpsvcs/
H A Dtcpsvcs.c49 pServInfo->servStatus.dwCurrentState = NewStatus; in UpdateStatus()
54 pServInfo->servStatus.dwCurrentState, in UpdateStatus()
177 servInfo.servStatus.dwCurrentState = SERVICE_STOPPED; in ServiceMain()
/reactos/base/services/dnsrslvr/
H A Ddnsrslvr.c39 SvcStatus.dwCurrentState = NewStatus; in UpdateServiceStatus()
85 SvcStatus.dwCurrentState = SERVICE_START_PENDING; in ServiceMain()
/reactos/modules/rostests/apitests/localspl/
H A Dservice.c149 ServiceStatus.dwCurrentState = SERVICE_RUNNING; in _ServiceMain()
156 ServiceStatus.dwCurrentState = SERVICE_STOPPED; in _ServiceMain()
/reactos/dll/win32/lsasrv/
H A Dservice.c92 ServiceStatus.dwCurrentState = SERVICE_START_PENDING; in SamSsServiceMain()
101 ServiceStatus.dwCurrentState = SERVICE_RUNNING; in SamSsServiceMain()
/reactos/base/services/shsvcs/
H A Dthmserver.c155 if (status.dwCurrentState == SERVICE_RUNNING) in ThemeWaitForServiceReady()
160 if (status.dwCurrentState != SERVICE_START_PENDING) in ThemeWaitForServiceReady()

123