Reactos

[RPCSS] Prevent the RPCSS service from getting stopped

CORE-13500

+12
+12
base/services/rpcss/rpcss_main.c
··· 91 91 SERVICE_STATUS status; 92 92 93 93 status.dwServiceType = SERVICE_WIN32; 94 + #ifdef __REACTOS__ 95 + status.dwControlsAccepted = 0; 96 + #else 94 97 status.dwControlsAccepted = SERVICE_ACCEPT_STOP; 98 + #endif 95 99 status.dwWin32ExitCode = 0; 96 100 status.dwServiceSpecificExitCode = 0; 97 101 status.dwCheckPoint = 0; ··· 137 141 138 142 status.dwServiceType = SERVICE_WIN32; 139 143 status.dwCurrentState = SERVICE_RUNNING; 144 + #ifdef __REACTOS__ 145 + status.dwControlsAccepted = 0; 146 + #else 140 147 status.dwControlsAccepted = SERVICE_ACCEPT_STOP | SERVICE_ACCEPT_SHUTDOWN; 148 + #endif 141 149 status.dwWin32ExitCode = 0; 142 150 status.dwServiceSpecificExitCode = 0; 143 151 status.dwCheckPoint = 0; 152 + #ifdef __REACTOS__ 153 + status.dwWaitHint = 0; 154 + #else 144 155 status.dwWaitHint = 10000; 156 + #endif 145 157 SetServiceStatus( service_handle, &status ); 146 158 147 159 #ifdef __REACTOS__