Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 796 of file sctrl.c.
Referenced by serv_main(), ServerCtrlHandler(), service_handler(), ServiceControlHandler(), ServiceMain(), UpdateSCMStatus(), UpdateServiceStatus(), and UpdateStatus().
{ DWORD dwError; TRACE("SetServiceStatus() called\n"); TRACE("hServiceStatus %lu\n", hServiceStatus); RpcTryExcept { /* Call to services.exe using RPC */ dwError = RSetServiceStatus((RPC_SERVICE_STATUS_HANDLE)hServiceStatus, lpServiceStatus); } RpcExcept(EXCEPTION_EXECUTE_HANDLER) { dwError = ScmRpcStatusToWinError(RpcExceptionCode()); } RpcEndExcept; if (dwError != ERROR_SUCCESS) { ERR("ScmrSetServiceStatus() failed (Error %lu)\n", dwError); SetLastError(dwError); return FALSE; } TRACE("SetServiceStatus() done (ret %lu)\n", dwError); return TRUE; }