/// <summary> /// Set UI Restriction Flags. /// </summary> /// <param name="flags">The UI Restriction Flags.</param> /// <returns>The NT status code.</returns> public void SetUiRestrictionFlags(JobObjectUiLimitFlags flags) { SetUiRestrictionFlags(flags, true); }
/// <summary> /// Set UI Restriction Flags. /// </summary> /// <param name="flags">The UI Restriction Flags.</param> /// <param name="throw_on_error">True to throw on error.</param> /// <returns>The NT status code.</returns> public NtStatus SetUiRestrictionFlags(JobObjectUiLimitFlags flags, bool throw_on_error) { return(Set(JobObjectInformationClass.JobObjectBasicUIRestrictions, (int)flags, throw_on_error)); }