示例#1
0
        private SERVICE_FAILURE_ACTIONS_FLAG BuildFailureActionsFlagStructure()
        {
            var ret = new SERVICE_FAILURE_ACTIONS_FLAG();

            ret.fFailureActionsOnNonCrashFailures = this.PerformFailureActionsOnStopWithNonZeroExitCode;

            return(ret);
        }
示例#2
0
 public static extern bool ChangeServiceConfig2W(SafeHandle hService, ServiceConfigType dwInfoLevel, ref SERVICE_FAILURE_ACTIONS_FLAG lpInfo);