mirror of
https://github.com/reactos/reactos.git
synced 2025-05-20 17:45:06 +00:00
[EVENTLOG]
- Stop listening to RPC messages when receiving SERVICE_CONTROL_STOP svn path=/trunk/; revision=53267
This commit is contained in:
parent
e0cbe302ee
commit
3d69d4ecf6
2 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,8 @@ ServiceControlHandler(DWORD dwControl,
|
||||||
{
|
{
|
||||||
case SERVICE_CONTROL_STOP:
|
case SERVICE_CONTROL_STOP:
|
||||||
DPRINT(" SERVICE_CONTROL_STOP received\n");
|
DPRINT(" SERVICE_CONTROL_STOP received\n");
|
||||||
|
/* Stop listening to incoming RPC messages */
|
||||||
|
RpcMgmtStopServerListening(NULL);
|
||||||
UpdateServiceStatus(SERVICE_STOPPED);
|
UpdateServiceStatus(SERVICE_STOPPED);
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
|
|
||||||
|
|
|
@ -3043,6 +3043,8 @@ ServiceControlHandler(DWORD dwControl,
|
||||||
{
|
{
|
||||||
case SERVICE_CONTROL_STOP:
|
case SERVICE_CONTROL_STOP:
|
||||||
DPRINT1(" SERVICE_CONTROL_STOP received\n");
|
DPRINT1(" SERVICE_CONTROL_STOP received\n");
|
||||||
|
/* Stop listening to RPC Messages */
|
||||||
|
RpcMgmtStopServerListening(NULL);
|
||||||
UpdateServiceStatus(SERVICE_STOPPED);
|
UpdateServiceStatus(SERVICE_STOPPED);
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue