Restore SEBPatch

This commit is contained in:
2025-06-01 11:44:20 +02:00
commit 8c656e3137
1297 changed files with 142172 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
/*
* Copyright (c) 2024 ETH Zürich, IT Services
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
using System;
namespace SafeExamBrowser.Settings.Monitoring
{
/// <summary>
/// Defines all settings related to the display configuration monitoring.
/// </summary>
[Serializable]
public class DisplaySettings
{
/// <summary>
/// Defines the number of allowed displays.
/// </summary>
public int AllowedDisplays { get; set; }
/// <summary>
/// Determines whether the display(s) will remain always on or not. This does not prevent the operating system from entering sleep mode or
/// standby, see <see cref="System.SystemSettings.AlwaysOn"/>.
/// </summary>
public bool AlwaysOn { get; set; }
/// <summary>
/// Determines whether any display configuration may be allowed when the configuration can't be verified due to an error.
/// </summary>
public bool IgnoreError { get; set; }
/// <summary>
/// Determines whether only an internal display may be used.
/// </summary>
public bool InternalDisplayOnly { get; set; }
}
}

View File

@@ -0,0 +1,129 @@
/*
* Copyright (c) 2024 ETH Zürich, IT Services
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
using System;
namespace SafeExamBrowser.Settings.Monitoring
{
/// <summary>
/// Defines all settings for monitoring keyboard input.
/// </summary>
[Serializable]
public class KeyboardSettings
{
/// <summary>
/// Determines whether the user may use the ALT+ESC shortcut.
/// </summary>
public bool AllowAltEsc { get; set; }
/// <summary>
/// Determines whether the user may use the ALT+F4 shortcut.
/// </summary>
public bool AllowAltF4 { get; set; }
/// <summary>
/// Determines whether the user may use the ALT+TAB shortcut.
/// </summary>
public bool AllowAltTab { get; set; }
/// <summary>
/// Determines whether the user may use the CTRL+C shortcut.
/// </summary>
public bool AllowCtrlC { get; set; }
/// <summary>
/// Determines whether the user may use the CTRL+ESC shortcut.
/// </summary>
public bool AllowCtrlEsc { get; set; }
/// <summary>
/// Determines whether the user may use the CTRL+V shortcut.
/// </summary>
public bool AllowCtrlV { get; set; }
/// <summary>
/// Determines whether the user may use the CTRL+X shortcut.
/// </summary>
public bool AllowCtrlX { get; set; }
/// <summary>
/// Determines whether the user may use the escape key.
/// </summary>
public bool AllowEsc { get; set; }
/// <summary>
/// Determines whether the user may use the F1 key.
/// </summary>
public bool AllowF1 { get; set; }
/// <summary>
/// Determines whether the user may use the F2 key.
/// </summary>
public bool AllowF2 { get; set; }
/// <summary>
/// Determines whether the user may use the F3 key.
/// </summary>
public bool AllowF3 { get; set; }
/// <summary>
/// Determines whether the user may use the F4 key.
/// </summary>
public bool AllowF4 { get; set; }
/// <summary>
/// Determines whether the user may use the F5 key.
/// </summary>
public bool AllowF5 { get; set; }
/// <summary>
/// Determines whether the user may use the F6 key.
/// </summary>
public bool AllowF6 { get; set; }
/// <summary>
/// Determines whether the user may use the F7 key.
/// </summary>
public bool AllowF7 { get; set; }
/// <summary>
/// Determines whether the user may use the F8 key.
/// </summary>
public bool AllowF8 { get; set; }
/// <summary>
/// Determines whether the user may use the F9 key.
/// </summary>
public bool AllowF9 { get; set; }
/// <summary>
/// Determines whether the user may use the F10 key.
/// </summary>
public bool AllowF10 { get; set; }
/// <summary>
/// Determines whether the user may use the F11 key.
/// </summary>
public bool AllowF11 { get; set; }
/// <summary>
/// Determines whether the user may use the F12 key.
/// </summary>
public bool AllowF12 { get; set; }
/// <summary>
/// Determines whether the user may use the print screen key.
/// </summary>
public bool AllowPrintScreen { get; set; }
/// <summary>
/// Determines whether the user may use the system key.
/// </summary>
public bool AllowSystemKey { get; set; }
}
}

View File

@@ -0,0 +1,29 @@
/*
* Copyright (c) 2024 ETH Zürich, IT Services
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
using System;
namespace SafeExamBrowser.Settings.Monitoring
{
/// <summary>
/// Defines all settings for monitoring mouse input.
/// </summary>
[Serializable]
public class MouseSettings
{
/// <summary>
/// Determines whether the user may use the middle mouse button.
/// </summary>
public bool AllowMiddleButton { get; set; }
/// <summary>
/// Determines whether the user may use the right mouse button.
/// </summary>
public bool AllowRightButton { get; set; }
}
}