mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 12:24:48 +00:00
[TCPVCS]
- Report service status upon an interrogate request. - Set the wait hint to a non-zero value. svn path=/trunk/; revision=54506
This commit is contained in:
parent
02a1138b90
commit
2e001db9ee
1 changed files with 2 additions and 1 deletions
|
@ -135,7 +135,7 @@ ServerCtrlHandler(DWORD dwControl,
|
||||||
LogEvent(L"\nSetting the service to SERVICE_STOP_PENDING", 0, 0, LOG_FILE);
|
LogEvent(L"\nSetting the service to SERVICE_STOP_PENDING", 0, 0, LOG_FILE);
|
||||||
InterlockedExchange((LONG *)&bShutdown, TRUE);
|
InterlockedExchange((LONG *)&bShutdown, TRUE);
|
||||||
pServInfo->servStatus.dwWin32ExitCode = 0;
|
pServInfo->servStatus.dwWin32ExitCode = 0;
|
||||||
pServInfo->servStatus.dwWaitHint = 0;
|
pServInfo->servStatus.dwWaitHint = 5000;
|
||||||
UpdateStatus(pServInfo, SERVICE_STOP_PENDING, 1);
|
UpdateStatus(pServInfo, SERVICE_STOP_PENDING, 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -152,6 +152,7 @@ ServerCtrlHandler(DWORD dwControl,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SERVICE_CONTROL_INTERROGATE:
|
case SERVICE_CONTROL_INTERROGATE:
|
||||||
|
SetServiceStatus(pServInfo->hStatus, &pServInfo->servStatus);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue