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,26 @@
/*
* 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/.
*/
namespace SafeExamBrowser.I18n.Contracts
{
/// <summary>
/// Provides access to text data.
/// </summary>
public interface IText
{
/// <summary>
/// Initializes the text module, i.e. loads text data according to the currently active UI culture.
/// </summary>
void Initialize();
/// <summary>
/// Gets the text associated with the specified key. If the key was not found, an error message indicating the missing key will be returned.
/// </summary>
string Get(TextKey key);
}
}

View File

@@ -0,0 +1,23 @@
/*
* 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.Collections.Generic;
namespace SafeExamBrowser.I18n.Contracts
{
/// <summary>
/// Defines a text resource, i.e. a source from which text data can be loaded.
/// </summary>
public interface ITextResource
{
/// <summary>
/// Loads all text data from a resource. Throws an exception if the data could not be loaded, e.g. due to a data format error.
/// </summary>
IDictionary<TextKey, string> LoadText();
}
}

View File

@@ -0,0 +1,33 @@
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("SafeExamBrowser.I18n.Contracts")]
[assembly: AssemblyDescription("Safe Exam Browser")]
[assembly: AssemblyCompany("ETH Zürich")]
[assembly: AssemblyProduct("SafeExamBrowser.I18n.Contracts")]
[assembly: AssemblyCopyright("Copyright © 2024 ETH Zürich, IT Services")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("1858ddf3-bc2a-4bff-b663-4ce2ffeb8b7d")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.0")]

View File

@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{1858DDF3-BC2A-4BFF-B663-4CE2FFEB8B7D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SafeExamBrowser.I18n.Contracts</RootNamespace>
<AssemblyName>SafeExamBrowser.I18n.Contracts</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<ItemGroup>
<Compile Include="IText.cs" />
<Compile Include="ITextResource.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="TextKey.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -0,0 +1,277 @@
/*
* 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/.
*/
namespace SafeExamBrowser.I18n.Contracts
{
/// <summary>
/// Defines all text elements of the user interface. Use the pattern "LogicalGroup_Description" to allow for a better overview over all
/// keys and their usage (where applicable).
/// </summary>
public enum TextKey
{
AboutWindow_LicenseInfo,
AboutWindow_Title,
Browser_BlockedContentMessage,
Browser_BlockedPageButton,
Browser_BlockedPageMessage,
Browser_BlockedPageTitle,
Browser_LoadErrorMessage,
Browser_LoadErrorTitle,
Browser_Name,
Browser_PrintNotAllowed,
Browser_Tooltip,
BrowserWindow_BackwardButton,
BrowserWindow_CloseButton,
BrowserWindow_DeveloperConsoleMenuItem,
BrowserWindow_Downloading,
BrowserWindow_DownloadCancelled,
BrowserWindow_DownloadComplete,
BrowserWindow_DownloadsButton,
BrowserWindow_FindCaseSensitive,
BrowserWindow_FindMenuItem,
BrowserWindow_ForwardButton,
BrowserWindow_HomeButton,
BrowserWindow_MenuButton,
BrowserWindow_ReloadButton,
BrowserWindow_SearchNext,
BrowserWindow_SearchPrevious,
BrowserWindow_SearchTextBox,
BrowserWindow_UrlTextBox,
BrowserWindow_ZoomLevelReset,
BrowserWindow_ZoomMenuItem,
BrowserWindow_ZoomMenuMinus,
BrowserWindow_ZoomMenuPlus,
Build,
CredentialsDialog_PasswordLabel,
CredentialsDialog_UsernameLabel,
CredentialsDialog_UsernameOptionalLabel,
CredentialsDialog_WirelessNetworkMessage,
CredentialsDialog_WirelessNetworkTitle,
ExamSelectionDialog_Cancel,
ExamSelectionDialog_Message,
ExamSelectionDialog_Select,
ExamSelectionDialog_Title,
FileSystemDialog_Cancel,
FileSystemDialog_LoadError,
FileSystemDialog_Loading,
FileSystemDialog_OpenFileMessage,
FileSystemDialog_OpenFolderMessage,
FileSystemDialog_OverwriteWarning,
FileSystemDialog_OverwriteWarningTitle,
FileSystemDialog_SaveAs,
FileSystemDialog_SaveFileMessage,
FileSystemDialog_SaveFolderMessage,
FileSystemDialog_Select,
FileSystemDialog_Title,
FolderDialog_ApplicationLocation,
LockScreen_ApplicationIntegrityMessage,
LockScreen_ApplicationsAllowOption,
LockScreen_ApplicationsMessage,
LockScreen_ApplicationsTerminateOption,
LockScreen_CursorContinueOption,
LockScreen_CursorMessage,
LockScreen_CursorTerminateOption,
LockScreen_DisplayConfigurationContinueOption,
LockScreen_DisplayConfigurationMessage,
LockScreen_DisplayConfigurationTerminateOption,
LockScreen_EaseOfAccessContinueOption,
LockScreen_EaseOfAccessMessage,
LockScreen_EaseOfAccessTerminateOption,
LockScreen_SessionIntegrityMessage,
LockScreen_StickyKeysMessage,
LockScreen_StickyKeysContinueOption,
LockScreen_StickyKeysTerminateOption,
LockScreen_Title,
LockScreen_UnlockButton,
LockScreen_UserSessionContinueOption,
LockScreen_UserSessionMessage,
LockScreen_UserSessionTerminateOption,
LogWindow_AlwaysOnTop,
LogWindow_AutoScroll,
LogWindow_Title,
MessageBox_ApplicationAutoTerminationDataLossWarning,
MessageBox_ApplicationAutoTerminationQuestion,
MessageBox_ApplicationAutoTerminationQuestionTitle,
MessageBox_ApplicationError,
MessageBox_ApplicationErrorTitle,
MessageBox_ApplicationInitializationFailure,
MessageBox_ApplicationInitializationFailureTitle,
MessageBox_ApplicationNotFound,
MessageBox_ApplicationNotFoundTitle,
MessageBox_ApplicationTerminationFailure,
MessageBox_ApplicationTerminationFailureTitle,
MessageBox_BrowserHomeQuestion,
MessageBox_BrowserHomeQuestionTitle,
MessageBox_BrowserNavigationBlocked,
MessageBox_BrowserNavigationBlockedTitle,
MessageBox_BrowserQuitUrlConfirmation,
MessageBox_BrowserQuitUrlConfirmationTitle,
MessageBox_CancelButton,
MessageBox_ClientConfigurationError,
MessageBox_ClientConfigurationErrorTitle,
MessageBox_ClientConfigurationQuestion,
MessageBox_ClientConfigurationQuestionTitle,
MessageBox_ConfigurationDownloadError,
MessageBox_ConfigurationDownloadErrorTitle,
MessageBox_DisplayConfigurationError,
MessageBox_DisplayConfigurationErrorTitle,
MessageBox_DisplayConfigurationInternal,
MessageBox_DisplayConfigurationInternalOrExternal,
MessageBox_DownloadNotAllowed,
MessageBox_DownloadNotAllowedTitle,
MessageBox_InvalidConfigurationData,
MessageBox_InvalidConfigurationDataTitle,
MessageBox_InvalidHomePassword,
MessageBox_InvalidHomePasswordTitle,
MessageBox_InvalidPasswordError,
MessageBox_InvalidPasswordErrorTitle,
MessageBox_InvalidQuitPassword,
MessageBox_InvalidQuitPasswordTitle,
MessageBox_InvalidUnlockPassword,
MessageBox_InvalidUnlockPasswordTitle,
MessageBox_NoButton,
MessageBox_NotSupportedConfigurationResource,
MessageBox_NotSupportedConfigurationResourceTitle,
MessageBox_OkButton,
MessageBox_Quit,
MessageBox_QuitTitle,
MessageBox_QuitError,
MessageBox_QuitErrorTitle,
MessageBox_ReconfigurationDenied,
MessageBox_ReconfigurationDeniedTitle,
MessageBox_ReconfigurationError,
MessageBox_ReconfigurationErrorTitle,
MessageBox_ReloadConfirmation,
MessageBox_ReloadConfirmationTitle,
MessageBox_RemoteSessionNotAllowed,
MessageBox_RemoteSessionNotAllowedTitle,
MessageBox_ScreenProctoringDisclaimer,
MessageBox_ScreenProctoringDisclaimerTitle,
MessageBox_ServerReconfigurationWarning,
MessageBox_ServerReconfigurationWarningTitle,
MessageBox_ServiceUnavailableError,
MessageBox_ServiceUnavailableErrorTitle,
MessageBox_ServiceUnavailableWarning,
MessageBox_ServiceUnavailableWarningTitle,
MessageBox_SessionStartError,
MessageBox_SessionStartErrorTitle,
MessageBox_ShutdownError,
MessageBox_ShutdownErrorTitle,
MessageBox_StartupError,
MessageBox_StartupErrorTitle,
MessageBox_UnexpectedConfigurationError,
MessageBox_UnexpectedConfigurationErrorTitle,
MessageBox_UploadNotAllowed,
MessageBox_UploadNotAllowedTitle,
MessageBox_VersionRestrictionError,
MessageBox_VersionRestrictionErrorTitle,
MessageBox_VersionRestrictionMinimum,
MessageBox_VideoProctoringDisclaimer,
MessageBox_VideoProctoringDisclaimerTitle,
MessageBox_VirtualMachineNotAllowed,
MessageBox_VirtualMachineNotAllowedTitle,
MessageBox_YesButton,
MessageBox_ZoomNotSupported,
MessageBox_ZoomNotSupportedTitle,
Notification_AboutTooltip,
Notification_LogTooltip,
Notification_ProctoringActiveTooltip,
Notification_ProctoringHandLowered,
Notification_ProctoringHandRaised,
Notification_ProctoringInactiveTooltip,
Notification_ProctoringLowerHand,
Notification_ProctoringRaiseHand,
OperationStatus_CloseRuntimeConnection,
OperationStatus_FinalizeApplications,
OperationStatus_FinalizeClipboard,
OperationStatus_FinalizeServer,
OperationStatus_FinalizeServiceSession,
OperationStatus_FinalizeSystemEvents,
OperationStatus_InitializeApplications,
OperationStatus_InitializeBrowser,
OperationStatus_InitializeClipboard,
OperationStatus_InitializeConfiguration,
OperationStatus_InitializeKioskMode,
OperationStatus_InitializeProctoring,
OperationStatus_InitializeRuntimeConnection,
OperationStatus_InitializeServer,
OperationStatus_InitializeServiceSession,
OperationStatus_InitializeSession,
OperationStatus_InitializeShell,
OperationStatus_InitializeSystemEvents,
OperationStatus_InitializeWorkingArea,
OperationStatus_RestartCommunicationHost,
OperationStatus_RestoreWorkingArea,
OperationStatus_RevertKioskMode,
OperationStatus_StartClient,
OperationStatus_StartCommunicationHost,
OperationStatus_StartKeyboardInterception,
OperationStatus_StartMouseInterception,
OperationStatus_StopClient,
OperationStatus_StopCommunicationHost,
OperationStatus_StopKeyboardInterception,
OperationStatus_StopMouseInterception,
OperationStatus_TerminateBrowser,
OperationStatus_TerminateProctoring,
OperationStatus_TerminateShell,
OperationStatus_ValidateDisplayConfiguration,
OperationStatus_ValidateRemoteSessionPolicy,
OperationStatus_ValidateVersionRestrictions,
OperationStatus_ValidateVirtualMachinePolicy,
OperationStatus_VerifyApplicationIntegrity,
OperationStatus_VerifySessionIntegrity,
OperationStatus_WaitDisclaimerConfirmation,
OperationStatus_WaitErrorConfirmation,
OperationStatus_WaitExplorerStartup,
OperationStatus_WaitExplorerTermination,
OperationStatus_WaitRuntimeDisconnection,
PasswordDialog_BrowserHomePasswordRequired,
PasswordDialog_BrowserHomePasswordRequiredTitle,
PasswordDialog_Cancel,
PasswordDialog_Confirm,
PasswordDialog_LocalAdminPasswordRequired,
PasswordDialog_LocalAdminPasswordRequiredTitle,
PasswordDialog_LocalSettingsPasswordRequired,
PasswordDialog_LocalSettingsPasswordRequiredTitle,
PasswordDialog_QuitPasswordRequired,
PasswordDialog_QuitPasswordRequiredTitle,
PasswordDialog_SettingsPasswordRequired,
PasswordDialog_SettingsPasswordRequiredTitle,
ProctoringFinalizationDialog_Confirm,
ProctoringFinalizationDialog_FailureMessage,
ProctoringFinalizationDialog_InfoMessage,
ProctoringFinalizationDialog_Status,
ProctoringFinalizationDialog_StatusAndTime,
ProctoringFinalizationDialog_StatusWaiting,
ProctoringFinalizationDialog_Title,
RuntimeWindow_ApplicationRunning,
ServerFailureDialog_Abort,
ServerFailureDialog_Fallback,
ServerFailureDialog_Message,
ServerFailureDialog_Retry,
ServerFailureDialog_Title,
Shell_QuitButton,
SystemControl_AudioDeviceInfo,
SystemControl_AudioDeviceInfoMuted,
SystemControl_AudioDeviceMuteTooltip,
SystemControl_AudioDeviceNotFound,
SystemControl_AudioDeviceUnmuteTooltip,
SystemControl_BatteryCharged,
SystemControl_BatteryCharging,
SystemControl_BatteryChargeCriticalWarning,
SystemControl_BatteryChargeLowInfo,
SystemControl_BatteryRemainingCharge,
SystemControl_KeyboardLayoutTooltip,
SystemControl_NetworkDisconnected,
SystemControl_NetworkNotAvailable,
SystemControl_NetworkWiredConnected,
SystemControl_NetworkWirelessConnected,
SystemControl_NetworkWirelessConnecting,
Version
}
}