如果您提前确定,由海事委员会重新启用,服务管制管理员将努力重新开始服务。 详见:,载于SERVICE_FAILURE_ACTIONS
的文件中。
A service is considered failed when it
terminates without reporting a status of SERVICE_STOPPED to the
service controller.
可通过制定<条码>SERVICE_FAILURE_ACTIONS_FLAG加以调整。 。 你们可以通过检查“以错误为阻止”的“可行行动”对回收表格的检查箱,从服务手册中确定这一背景。
If this member is TRUE and the service has configured failure actions, the failure actions are queued if the service process terminates without reporting a status of SERVICE_STOPPED or if it enters the SERVICE_STOPPED state but the dwWin32ExitCode member of the SERVICE_STATUS structure is not ERROR_SUCCESS (0).
If this member is FALSE and the service has configured failure actions, the failure actions are queued only if the service terminates without reporting a status of SERVICE_STOPPED.
因此,根据你如何安排你的工作,你如何组合你的失败行动,如果你有致命错误,则只需打上<代码>ExitProcess(或>,并退还非零值。 然而,确保你的工作没有处理SCM的守则,即你的工作达到<条码>的SSERVICE_STOPPED。 这确保了你未能采取行动......