private SERVICE_FAILURE_ACTIONS_FLAG BuildFailureActionsFlagStructure() { var ret = new SERVICE_FAILURE_ACTIONS_FLAG(); ret.fFailureActionsOnNonCrashFailures = this.PerformFailureActionsOnStopWithNonZeroExitCode; return(ret); }
public static extern bool ChangeServiceConfig2W(SafeHandle hService, ServiceConfigType dwInfoLevel, ref SERVICE_FAILURE_ACTIONS_FLAG lpInfo);