[RPCSS][THMSVC]: Perform the internal cleanup tasks before calling SetServiceStatus...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 6 Feb 2017 16:56:32 +0000 (16:56 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 6 Feb 2017 16:56:32 +0000 (16:56 +0000)
commit826536350c70898e20614e4503ab137409e8d608
treea6da747cc73b3bd667d63afbaca3a3b3def0b6ba
parent0b7e31082feb5804a2fc40c7739d1fbc6cf72fc7
[RPCSS][THMSVC]: Perform the internal cleanup tasks before calling SetServiceStatus with 'dwCurrentState = SERVICE_STOPPED', because otherwise (if internal cleanup is done after calling SetServiceStatus) the SCM could kill the service in the middle of its cleanup tasks.

[SVCHOST][WINLOGON][LSASRV][SAMSRV]: Use the SDK-defined constant RPC_C_PROTSEQ_MAX_REQS_DEFAULT instead of hardcoding its value in the RpcServerUseProtseqEpW calls.

svn path=/trunk/; revision=73726
reactos/base/services/rpcss/service_main.c
reactos/base/services/svchost/rpcsrv.c
reactos/base/services/thmsvc/thmsvc.c
reactos/base/system/winlogon/rpcserver.c
reactos/dll/win32/lsasrv/lsarpc.c
reactos/dll/win32/samsrv/samrpc.c