diff --git a/SafeExamBrowser.Browser/BrowserControl.cs b/SafeExamBrowser.Browser/BrowserControl.cs
index 75068c5f..b96b9cfb 100644
--- a/SafeExamBrowser.Browser/BrowserControl.cs
+++ b/SafeExamBrowser.Browser/BrowserControl.cs
@@ -81,7 +81,7 @@ namespace SafeExamBrowser.Browser
{
Task.Run(() => callback(new JavascriptResult
{
- Message = "JavaScript can't be executed in the main frame!",
+ Message = "JavaScript can't be executed in main frame!",
Success = false
}));
}
diff --git a/SafeExamBrowser.Browser/BrowserWindow.cs b/SafeExamBrowser.Browser/BrowserWindow.cs
index 04323176..04162fc6 100644
--- a/SafeExamBrowser.Browser/BrowserWindow.cs
+++ b/SafeExamBrowser.Browser/BrowserWindow.cs
@@ -150,7 +150,7 @@ namespace SafeExamBrowser.Browser
var downloadLogger = logger.CloneFor($"{nameof(DownloadHandler)} #{Id}");
var downloadHandler = new DownloadHandler(appConfig, downloadLogger, settings, WindowSettings);
var keyboardHandler = new KeyboardHandler();
- var renderProcessMessageHandler = new RenderProcessMessageHandler(appConfig, keyGenerator, text);
+ var renderHandler = new RenderProcessMessageHandler(appConfig, keyGenerator, settings, text);
var requestFilter = new RequestFilter();
var requestLogger = logger.CloneFor($"{nameof(RequestHandler)} #{Id}");
var resourceHandler = new ResourceHandler(appConfig, requestFilter, keyGenerator, logger, settings, WindowSettings, text);
@@ -187,7 +187,7 @@ namespace SafeExamBrowser.Browser
InitializeRequestFilter(requestFilter);
- Control = new BrowserControl(cefSharpControl, dialogHandler, displayHandler, downloadHandler, keyboardHandler, renderProcessMessageHandler, requestHandler);
+ Control = new BrowserControl(cefSharpControl, dialogHandler, displayHandler, downloadHandler, keyboardHandler, renderHandler, requestHandler);
Control.AddressChanged += Control_AddressChanged;
Control.LoadFailed += Control_LoadFailed;
Control.LoadingStateChanged += Control_LoadingStateChanged;
diff --git a/SafeExamBrowser.Browser/Handlers/RenderProcessMessageHandler.cs b/SafeExamBrowser.Browser/Handlers/RenderProcessMessageHandler.cs
index 145cff0a..24e11acf 100644
--- a/SafeExamBrowser.Browser/Handlers/RenderProcessMessageHandler.cs
+++ b/SafeExamBrowser.Browser/Handlers/RenderProcessMessageHandler.cs
@@ -11,6 +11,7 @@ using SafeExamBrowser.Browser.Content;
using SafeExamBrowser.Configuration.Contracts;
using SafeExamBrowser.Configuration.Contracts.Cryptography;
using SafeExamBrowser.I18n.Contracts;
+using BrowserSettings = SafeExamBrowser.Settings.Browser.BrowserSettings;
namespace SafeExamBrowser.Browser.Handlers
{
@@ -19,12 +20,16 @@ namespace SafeExamBrowser.Browser.Handlers
private readonly AppConfig appConfig;
private readonly ContentLoader contentLoader;
private readonly IKeyGenerator keyGenerator;
+ private readonly BrowserSettings settings;
+ private readonly IText text;
- internal RenderProcessMessageHandler(AppConfig appConfig, IKeyGenerator keyGenerator, IText text)
+ internal RenderProcessMessageHandler(AppConfig appConfig, IKeyGenerator keyGenerator, BrowserSettings settings, IText text)
{
this.appConfig = appConfig;
this.contentLoader = new ContentLoader(text);
this.keyGenerator = keyGenerator;
+ this.settings = settings;
+ this.text = text;
}
public void OnContextCreated(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame)
@@ -34,6 +39,11 @@ namespace SafeExamBrowser.Browser.Handlers
var api = contentLoader.LoadApi(browserExamKey, configurationKey, appConfig.ProgramBuildVersion);
frame.ExecuteJavaScriptAsync(api);
+
+ if (!settings.AllowPrint)
+ {
+ frame.ExecuteJavaScriptAsync($"window.print = function(){{ alert('{text.Get(TextKey.Browser_PrintNotAllowed)}') }}");
+ }
}
public void OnContextReleased(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame)
diff --git a/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/BrowserDataMapper.cs b/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/BrowserDataMapper.cs
index 07cca30e..be36610b 100644
--- a/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/BrowserDataMapper.cs
+++ b/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/BrowserDataMapper.cs
@@ -42,6 +42,9 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping
case Keys.Browser.AllowPdfReaderToolbar:
MapAllowPdfReaderToolbar(settings, value);
break;
+ case Keys.Browser.AllowPrint:
+ MapAllowPrint(settings, value);
+ break;
case Keys.Browser.AllowSpellChecking:
MapAllowSpellChecking(settings, value);
break;
@@ -270,6 +273,14 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping
}
}
+ private void MapAllowPrint(AppSettings settings, object value)
+ {
+ if (value is bool allow)
+ {
+ settings.Browser.AllowPrint = allow;
+ }
+ }
+
private void MapAllowSpellChecking(AppSettings settings, object value)
{
if (value is bool allow)
@@ -817,13 +828,13 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping
{
if (raw.EndsWith("%") && int.TryParse(raw.Replace("%", string.Empty), out var relativeHeight))
{
- settings.Browser.AdditionalWindow.AbsoluteHeight = default(int?);
+ settings.Browser.AdditionalWindow.AbsoluteHeight = default;
settings.Browser.AdditionalWindow.RelativeHeight = relativeHeight;
}
else if (int.TryParse(raw, out var absoluteHeight))
{
settings.Browser.AdditionalWindow.AbsoluteHeight = absoluteHeight;
- settings.Browser.AdditionalWindow.RelativeHeight = default(int?);
+ settings.Browser.AdditionalWindow.RelativeHeight = default;
}
}
}
@@ -834,13 +845,13 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping
{
if (raw.EndsWith("%") && int.TryParse(raw.Replace("%", string.Empty), out var relativeHeight))
{
- settings.Browser.MainWindow.AbsoluteHeight = default(int?);
+ settings.Browser.MainWindow.AbsoluteHeight = default;
settings.Browser.MainWindow.RelativeHeight = relativeHeight;
}
else if (int.TryParse(raw, out var absoluteHeight))
{
settings.Browser.MainWindow.AbsoluteHeight = absoluteHeight;
- settings.Browser.MainWindow.RelativeHeight = default(int?);
+ settings.Browser.MainWindow.RelativeHeight = default;
}
}
}
@@ -897,13 +908,13 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping
{
if (raw.EndsWith("%") && int.TryParse(raw.Replace("%", string.Empty), out var relativeWidth))
{
- settings.Browser.AdditionalWindow.AbsoluteWidth = default(int?);
+ settings.Browser.AdditionalWindow.AbsoluteWidth = default;
settings.Browser.AdditionalWindow.RelativeWidth = relativeWidth;
}
else if (int.TryParse(raw, out var absoluteWidth))
{
settings.Browser.AdditionalWindow.AbsoluteWidth = absoluteWidth;
- settings.Browser.AdditionalWindow.RelativeWidth = default(int?);
+ settings.Browser.AdditionalWindow.RelativeWidth = default;
}
}
}
@@ -914,13 +925,13 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping
{
if (raw.EndsWith("%") && int.TryParse(raw.Replace("%", string.Empty), out var relativeWidth))
{
- settings.Browser.MainWindow.AbsoluteWidth = default(int?);
+ settings.Browser.MainWindow.AbsoluteWidth = default;
settings.Browser.MainWindow.RelativeWidth = relativeWidth;
}
else if (int.TryParse(raw, out var absoluteWidth))
{
settings.Browser.MainWindow.AbsoluteWidth = absoluteWidth;
- settings.Browser.MainWindow.RelativeWidth = default(int?);
+ settings.Browser.MainWindow.RelativeWidth = default;
}
}
}
diff --git a/SafeExamBrowser.Configuration/ConfigurationData/DataValues.cs b/SafeExamBrowser.Configuration/ConfigurationData/DataValues.cs
index d4e54379..98637ab4 100644
--- a/SafeExamBrowser.Configuration/ConfigurationData/DataValues.cs
+++ b/SafeExamBrowser.Configuration/ConfigurationData/DataValues.cs
@@ -164,6 +164,7 @@ namespace SafeExamBrowser.Configuration.ConfigurationData
settings.Browser.AllowPageZoom = true;
settings.Browser.AllowPdfReader = true;
settings.Browser.AllowPdfReaderToolbar = false;
+ settings.Browser.AllowPrint = false;
settings.Browser.AllowUploads = true;
settings.Browser.DeleteCacheOnShutdown = true;
settings.Browser.DeleteCookiesOnShutdown = true;
diff --git a/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs b/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs
index 1ed68e0c..3243ffba 100644
--- a/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs
+++ b/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs
@@ -48,6 +48,7 @@ namespace SafeExamBrowser.Configuration.ConfigurationData
internal const string AllowFind = "allowFind";
internal const string AllowPageZoom = "enableZoomPage";
internal const string AllowPdfReaderToolbar = "allowPDFReaderToolbar";
+ internal const string AllowPrint = "allowPrint";
internal const string AllowSpellChecking = "allowSpellCheck";
internal const string CustomUserAgentDesktop = "browserUserAgentWinDesktopModeCustom";
internal const string CustomUserAgentMobile = "browserUserAgentWinTouchModeCustom";
@@ -134,7 +135,7 @@ namespace SafeExamBrowser.Configuration.ConfigurationData
internal static class Http
{
- internal const string Enable = "HTTPEnable";
+ internal const string Enable = "HTTPEnable";
internal const string Host = "HTTPProxy";
internal const string Password = "HTTPPassword";
internal const string Port = "HTTPPort";
diff --git a/SafeExamBrowser.I18n.Contracts/TextKey.cs b/SafeExamBrowser.I18n.Contracts/TextKey.cs
index 25ea9652..857bf079 100644
--- a/SafeExamBrowser.I18n.Contracts/TextKey.cs
+++ b/SafeExamBrowser.I18n.Contracts/TextKey.cs
@@ -23,6 +23,7 @@ namespace SafeExamBrowser.I18n.Contracts
Browser_LoadErrorMessage,
Browser_LoadErrorTitle,
Browser_Name,
+ Browser_PrintNotAllowed,
Browser_Tooltip,
BrowserWindow_BackwardButton,
BrowserWindow_DeveloperConsoleMenuItem,
diff --git a/SafeExamBrowser.I18n/Data/de.xml b/SafeExamBrowser.I18n/Data/de.xml
index 4dad7a0c..fdb5346d 100644
--- a/SafeExamBrowser.I18n/Data/de.xml
+++ b/SafeExamBrowser.I18n/Data/de.xml
@@ -27,6 +27,9 @@
Browser
+
+ Drucken ist nicht erlaubt gemäss der aktiven Konfiguration.
+
Browser Applikation
diff --git a/SafeExamBrowser.I18n/Data/en.xml b/SafeExamBrowser.I18n/Data/en.xml
index f08690c4..00bc9cc8 100644
--- a/SafeExamBrowser.I18n/Data/en.xml
+++ b/SafeExamBrowser.I18n/Data/en.xml
@@ -27,6 +27,9 @@
Browser
+
+ Printing is not allowed according to the current configuration.
+
Browser Application
diff --git a/SafeExamBrowser.I18n/Data/fr.xml b/SafeExamBrowser.I18n/Data/fr.xml
index 4fb51cc1..64361edb 100644
--- a/SafeExamBrowser.I18n/Data/fr.xml
+++ b/SafeExamBrowser.I18n/Data/fr.xml
@@ -27,6 +27,9 @@
Navigateur
+
+ L'impression n'est pas autorisée par la configuration actuelle.
+
Application du navigateur
diff --git a/SafeExamBrowser.I18n/Data/it.xml b/SafeExamBrowser.I18n/Data/it.xml
index d290f404..40420605 100644
--- a/SafeExamBrowser.I18n/Data/it.xml
+++ b/SafeExamBrowser.I18n/Data/it.xml
@@ -27,6 +27,9 @@
Browser
+
+ La stampa non è consentita in base alla configurazione corrente.
+
Applicazione browser
diff --git a/SafeExamBrowser.I18n/Data/zh.xml b/SafeExamBrowser.I18n/Data/zh.xml
index a90dd312..d9e5959b 100644
--- a/SafeExamBrowser.I18n/Data/zh.xml
+++ b/SafeExamBrowser.I18n/Data/zh.xml
@@ -30,6 +30,9 @@
浏览器
+
+ 根据当前配置不允许打印。
+
浏览器应用程序
diff --git a/SafeExamBrowser.Settings/Browser/BrowserSettings.cs b/SafeExamBrowser.Settings/Browser/BrowserSettings.cs
index aa8919cb..fd7bf25e 100644
--- a/SafeExamBrowser.Settings/Browser/BrowserSettings.cs
+++ b/SafeExamBrowser.Settings/Browser/BrowserSettings.cs
@@ -56,6 +56,11 @@ namespace SafeExamBrowser.Settings.Browser
///
public bool AllowPdfReaderToolbar { get; set; }
+ ///
+ /// Determines whether the user will be allowed to print web content. To control printing in PDF documents, see .
+ ///
+ public bool AllowPrint { get; set; }
+
///
/// Determines whether spell checking is enabled for input fields.
///
diff --git a/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml.cs b/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml.cs
index b4d9833a..21f9bf6b 100644
--- a/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml.cs
+++ b/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml.cs
@@ -484,7 +484,7 @@ if (typeof __SEB_focusElement === 'undefined') {
{
if (!result.Success)
{
- logger.Error($"Javascript error {result.Message}!");
+ logger.Error($"Failed to initialize JavaScript: {result.Message}");
}
});
@@ -492,7 +492,7 @@ if (typeof __SEB_focusElement === 'undefined') {
{
if (!result.Success)
{
- logger.Error($"Javascript error {result.Message}!");
+ logger.Error($"Failed to execute JavaScript: {result.Message}");
}
});
}
diff --git a/SafeExamBrowser.UserInterface.Mobile/Windows/BrowserWindow.xaml.cs b/SafeExamBrowser.UserInterface.Mobile/Windows/BrowserWindow.xaml.cs
index 426decae..5780d516 100644
--- a/SafeExamBrowser.UserInterface.Mobile/Windows/BrowserWindow.xaml.cs
+++ b/SafeExamBrowser.UserInterface.Mobile/Windows/BrowserWindow.xaml.cs
@@ -465,21 +465,21 @@ namespace SafeExamBrowser.UserInterface.Mobile.Windows
var javascript = @"
if (typeof __SEB_focusElement === 'undefined') {
__SEB_focusElement = function (forward) {
- var items = [].map
- .call(document.body.querySelectorAll(['input', 'select', 'a[href]', 'textarea', 'button', '[tabindex]']), function(el, i) { return { el, i } })
- .filter(function(e) { return e.el.tabIndex >= 0 && !e.el.disabled && e.el.offsetParent; })
- .sort(function(a,b) { return a.el.tabIndex === b.el.tabIndex ? a.i - b.i : (a.el.tabIndex || 9E9) - (b.el.tabIndex || 9E9); })
- var item = items[forward ? 1 : items.length - 1];
- if (item && item.focus && typeof item.focus !== 'function')
- throw ('item.focus is not a function, ' + typeof item.focus)
- setTimeout(function () { item && item.focus && item.focus(); }, 20);
+ var items = [].map
+ .call(document.body.querySelectorAll(['input', 'select', 'a[href]', 'textarea', 'button', '[tabindex]']), function(el, i) { return { el, i } })
+ .filter(function(e) { return e.el.tabIndex >= 0 && !e.el.disabled && e.el.offsetParent; })
+ .sort(function(a,b) { return a.el.tabIndex === b.el.tabIndex ? a.i - b.i : (a.el.tabIndex || 9E9) - (b.el.tabIndex || 9E9); })
+ var item = items[forward ? 1 : items.length - 1];
+ if (item && item.focus && typeof item.focus !== 'function')
+ throw ('item.focus is not a function, ' + typeof item.focus)
+ setTimeout(function () { item && item.focus && item.focus(); }, 20);
}
}";
browserControl.ExecuteJavascript(javascript, result =>
{
if (!result.Success)
{
- logger.Error($"Javascript error {result.Message}!");
+ logger.Error($"Failed to initialize JavaScript: {result.Message}!");
}
});
@@ -487,7 +487,7 @@ if (typeof __SEB_focusElement === 'undefined') {
{
if (!result.Success)
{
- logger.Error($"Javascript error {result.Message}!");
+ logger.Error($"Failed to execute JavaScript: {result.Message}!");
}
});
}
diff --git a/SebWindowsConfig/SEBSettings.cs b/SebWindowsConfig/SEBSettings.cs
index 4208df59..84095a37 100644
--- a/SebWindowsConfig/SEBSettings.cs
+++ b/SebWindowsConfig/SEBSettings.cs
@@ -62,12 +62,12 @@ namespace SebWindowsConfig
// Some key/value pairs are not stored in the sebSettings Plist structures,
// so they must be separately stored in arrays
- public const int ValCryptoIdentity = 1;
- public const int ValMainBrowserWindowWidth = 2;
- public const int ValMainBrowserWindowHeight = 3;
- public const int ValNewBrowserWindowByLinkWidth = 4;
+ public const int ValCryptoIdentity = 1;
+ public const int ValMainBrowserWindowWidth = 2;
+ public const int ValMainBrowserWindowHeight = 3;
+ public const int ValNewBrowserWindowByLinkWidth = 4;
public const int ValNewBrowserWindowByLinkHeight = 5;
- public const int ValTaskBarHeight = 6;
+ public const int ValTaskBarHeight = 6;
public const int ValMinMacOSVersion = 7;
public const int ValAllowedDisplaysMaxNumber = 8;
public const int ValNum = 8;
@@ -76,58 +76,58 @@ namespace SebWindowsConfig
public const String KeyOriginatorVersion = "originatorVersion";
// Group "General"
- public const String KeyStartURL = "startURL";
- public const String KeyStartResource = "startResource";
- public const String KeySebServerURL = "sebServerURL";
- public const String KeyHashedAdminPassword = "hashedAdminPassword";
- public const String KeyAllowQuit = "allowQuit";
- public const String KeyIgnoreExitKeys = "ignoreExitKeys";
- public const String KeyHashedQuitPassword = "hashedQuitPassword";
- public const String KeyExitKey1 = "exitKey1";
- public const String KeyExitKey2 = "exitKey2";
- public const String KeyExitKey3 = "exitKey3";
- public const String KeySebMode = "sebMode";
+ public const String KeyStartURL = "startURL";
+ public const String KeyStartResource = "startResource";
+ public const String KeySebServerURL = "sebServerURL";
+ public const String KeyHashedAdminPassword = "hashedAdminPassword";
+ public const String KeyAllowQuit = "allowQuit";
+ public const String KeyIgnoreExitKeys = "ignoreExitKeys";
+ public const String KeyHashedQuitPassword = "hashedQuitPassword";
+ public const String KeyExitKey1 = "exitKey1";
+ public const String KeyExitKey2 = "exitKey2";
+ public const String KeyExitKey3 = "exitKey3";
+ public const String KeySebMode = "sebMode";
public const String KeyBrowserMessagingSocket = "browserMessagingSocket";
public const String KeyBrowserMessagingPingTime = "browserMessagingPingTime";
public const String KeyBrowserMessagingSocketEnabled = "browserMessagingSocketEnabled";
// Group "Config File"
- public const String KeySebConfigPurpose = "sebConfigPurpose";
- public const String KeyAllowPreferencesWindow = "allowPreferencesWindow";
- public const String KeyCryptoIdentity = "cryptoIdentity";
+ public const String KeySebConfigPurpose = "sebConfigPurpose";
+ public const String KeyAllowPreferencesWindow = "allowPreferencesWindow";
+ public const String KeyCryptoIdentity = "cryptoIdentity";
public const String KeyUseAsymmetricOnlyEncryption = "useAsymmetricOnlyEncryption";
// Group "User Interface"
- public const String KeyBrowserViewMode = "browserViewMode";
+ public const String KeyBrowserViewMode = "browserViewMode";
public const String KeyBrowserWindowAllowAddressBar = "browserWindowAllowAddressBar";
public const String KeyNewBrowserWindowAllowAddressBar = "newBrowserWindowAllowAddressBar";
- public const String KeyMainBrowserWindowWidth = "mainBrowserWindowWidth";
- public const String KeyMainBrowserWindowHeight = "mainBrowserWindowHeight";
+ public const String KeyMainBrowserWindowWidth = "mainBrowserWindowWidth";
+ public const String KeyMainBrowserWindowHeight = "mainBrowserWindowHeight";
public const String KeyMainBrowserWindowPositioning = "mainBrowserWindowPositioning";
- public const String KeyEnableBrowserWindowToolbar = "enableBrowserWindowToolbar";
- public const String KeyHideBrowserWindowToolbar = "hideBrowserWindowToolbar";
- public const String KeyShowMenuBar = "showMenuBar";
- public const String KeyShowTaskBar = "showTaskBar";
- public const String KeyShowSideMenu = "showSideMenu";
- public const String KeyTaskBarHeight = "taskBarHeight";
- public const String KeyTouchOptimized = "touchOptimized";
- public const String KeyEnableZoomText = "enableZoomText";
- public const String KeyEnableZoomPage = "enableZoomPage";
- public const String KeyZoomMode = "zoomMode";
- public const String KeyShowReloadButton = "showReloadButton";
- public const String KeyShowTime = "showTime";
- public const String KeyShowInputLanguage = "showInputLanguage";
- public const String KeyAllowDictionaryLookup = "allowDictionaryLookup";
- public const String KeyEnableTouchExit = "enableTouchExit";
- public const String KeyOskBehavior = "oskBehavior";
- public const String KeyAllowDeveloperConsole = "allowDeveloperConsole";
+ public const String KeyEnableBrowserWindowToolbar = "enableBrowserWindowToolbar";
+ public const String KeyHideBrowserWindowToolbar = "hideBrowserWindowToolbar";
+ public const String KeyShowMenuBar = "showMenuBar";
+ public const String KeyShowTaskBar = "showTaskBar";
+ public const String KeyShowSideMenu = "showSideMenu";
+ public const String KeyTaskBarHeight = "taskBarHeight";
+ public const String KeyTouchOptimized = "touchOptimized";
+ public const String KeyEnableZoomText = "enableZoomText";
+ public const String KeyEnableZoomPage = "enableZoomPage";
+ public const String KeyZoomMode = "zoomMode";
+ public const String KeyShowReloadButton = "showReloadButton";
+ public const String KeyShowTime = "showTime";
+ public const String KeyShowInputLanguage = "showInputLanguage";
+ public const String KeyAllowDictionaryLookup = "allowDictionaryLookup";
+ public const String KeyEnableTouchExit = "enableTouchExit";
+ public const String KeyOskBehavior = "oskBehavior";
+ public const String KeyAllowDeveloperConsole = "allowDeveloperConsole";
- public const string KeyAllowSpellCheck = "allowSpellCheck";
- public const string KeyAllowSpellCheckDictionary = "allowSpellCheckDictionary";
- public const string KeyAdditionalDictionaries = "additionalDictionaries";
- public const string KeyAdditionalDictionaryData = "dictionaryData";
- public const string KeyAdditionalDictionaryFormat = "dictionaryFormat";
- public const string KeyAdditionalDictionaryLocale = "localeName";
+ public const string KeyAllowSpellCheck = "allowSpellCheck";
+ public const string KeyAllowSpellCheckDictionary = "allowSpellCheckDictionary";
+ public const string KeyAdditionalDictionaries = "additionalDictionaries";
+ public const string KeyAdditionalDictionaryData = "dictionaryData";
+ public const string KeyAdditionalDictionaryFormat = "dictionaryFormat";
+ public const string KeyAdditionalDictionaryLocale = "localeName";
public const string KeyAudioMute = "audioMute";
public const string KeyAudioControlEnabled = "audioControlEnabled";
@@ -138,61 +138,62 @@ namespace SebWindowsConfig
public const String KeyBrowserScreenKeyboard = "browserScreenKeyboard";
// Group "Browser"
- public const String KeyNewBrowserWindowByLinkPolicy = "newBrowserWindowByLinkPolicy";
- public const String KeyNewBrowserWindowByScriptPolicy = "newBrowserWindowByScriptPolicy";
- public const String KeyNewBrowserWindowByLinkBlockForeign = "newBrowserWindowByLinkBlockForeign";
+ public const String KeyNewBrowserWindowByLinkPolicy = "newBrowserWindowByLinkPolicy";
+ public const String KeyNewBrowserWindowByScriptPolicy = "newBrowserWindowByScriptPolicy";
+ public const String KeyNewBrowserWindowByLinkBlockForeign = "newBrowserWindowByLinkBlockForeign";
public const String KeyNewBrowserWindowByScriptBlockForeign = "newBrowserWindowByScriptBlockForeign";
- public const String KeyNewBrowserWindowByLinkWidth = "newBrowserWindowByLinkWidth";
- public const String KeyNewBrowserWindowByLinkHeight = "newBrowserWindowByLinkHeight";
- public const String KeyNewBrowserWindowByLinkPositioning = "newBrowserWindowByLinkPositioning";
- public const String KeyNewBrowserWindowUrlPolicy = "newBrowserWindowShowURL";
- public const String KeyMainBrowserWindowUrlPolicy = "browserWindowShowURL";
- public const String KeyEnablePlugIns = "enablePlugIns";
- public const String KeyEnableJava = "enableJava";
- public const String KeyEnableJavaScript = "enableJavaScript";
- public const String KeyBlockPopUpWindows = "blockPopUpWindows";
- public const String KeyAllowVideoCapture = "allowVideoCapture";
- public const String KeyAllowAudioCapture = "allowAudioCapture";
- public const String KeyAllowBrowsingBackForward = "allowBrowsingBackForward";
- public const String KeyNewBrowserWindowNavigation = "newBrowserWindowNavigation";
- public const String KeyRemoveBrowserProfile = "removeBrowserProfile";
- public const String KeyDisableLocalStorage = "removeLocalStorage";
- public const String KeyEnableSebBrowser = "enableSebBrowser";
- public const String KeyBrowserWindowAllowReload = "browserWindowAllowReload";
- public const String KeyNewBrowserWindowAllowReload = "newBrowserWindowAllowReload";
- public const String KeyShowReloadWarning = "showReloadWarning";
- public const String KeyNewBrowserWindowShowReloadWarning = "newBrowserWindowShowReloadWarning";
- public const String KeyBrowserUserAgentDesktopMode = "browserUserAgentWinDesktopMode";
- public const String KeyBrowserUserAgentDesktopModeCustom = "browserUserAgentWinDesktopModeCustom";
- public const String KeyBrowserUserAgentTouchMode = "browserUserAgentWinTouchMode";
- public const String KeyBrowserUserAgentTouchModeIPad = "browserUserAgentWinTouchModeIPad";
- public const String KeyBrowserUserAgentTouchModeCustom = "browserUserAgentWinTouchModeCustom";
- public const String KeyBrowserUserAgent = "browserUserAgent";
- public const String KeyBrowserUserAgentMac = "browserUserAgentMac";
- public const String KeyBrowserUserAgentMacCustom = "browserUserAgentMacCustom";
- public const String KeyBrowserWindowTitleSuffix = "browserWindowTitleSuffix";
- public const String KeyAllowPDFReaderToolbar = "allowPDFReaderToolbar";
- public const String KeyAllowFind = "allowFind";
+ public const String KeyNewBrowserWindowByLinkWidth = "newBrowserWindowByLinkWidth";
+ public const String KeyNewBrowserWindowByLinkHeight = "newBrowserWindowByLinkHeight";
+ public const String KeyNewBrowserWindowByLinkPositioning = "newBrowserWindowByLinkPositioning";
+ public const String KeyNewBrowserWindowUrlPolicy = "newBrowserWindowShowURL";
+ public const String KeyMainBrowserWindowUrlPolicy = "browserWindowShowURL";
+ public const String KeyEnablePlugIns = "enablePlugIns";
+ public const String KeyEnableJava = "enableJava";
+ public const String KeyEnableJavaScript = "enableJavaScript";
+ public const String KeyBlockPopUpWindows = "blockPopUpWindows";
+ public const String KeyAllowVideoCapture = "allowVideoCapture";
+ public const String KeyAllowAudioCapture = "allowAudioCapture";
+ public const String KeyAllowBrowsingBackForward = "allowBrowsingBackForward";
+ public const String KeyNewBrowserWindowNavigation = "newBrowserWindowNavigation";
+ public const String KeyRemoveBrowserProfile = "removeBrowserProfile";
+ public const String KeyDisableLocalStorage = "removeLocalStorage";
+ public const String KeyEnableSebBrowser = "enableSebBrowser";
+ public const String KeyBrowserWindowAllowReload = "browserWindowAllowReload";
+ public const String KeyNewBrowserWindowAllowReload = "newBrowserWindowAllowReload";
+ public const String KeyShowReloadWarning = "showReloadWarning";
+ public const String KeyNewBrowserWindowShowReloadWarning = "newBrowserWindowShowReloadWarning";
+ public const String KeyBrowserUserAgentDesktopMode = "browserUserAgentWinDesktopMode";
+ public const String KeyBrowserUserAgentDesktopModeCustom = "browserUserAgentWinDesktopModeCustom";
+ public const String KeyBrowserUserAgentTouchMode = "browserUserAgentWinTouchMode";
+ public const String KeyBrowserUserAgentTouchModeIPad = "browserUserAgentWinTouchModeIPad";
+ public const String KeyBrowserUserAgentTouchModeCustom = "browserUserAgentWinTouchModeCustom";
+ public const String KeyBrowserUserAgent = "browserUserAgent";
+ public const String KeyBrowserUserAgentMac = "browserUserAgentMac";
+ public const String KeyBrowserUserAgentMacCustom = "browserUserAgentMacCustom";
+ public const String KeyBrowserWindowTitleSuffix = "browserWindowTitleSuffix";
+ public const String KeyAllowPDFReaderToolbar = "allowPDFReaderToolbar";
+ public const String KeyAllowFind = "allowFind";
+ public const String KeyAllowPrint = "allowPrint";
// Group "DownUploads"
- public const String KeyAllowDownUploads = "allowDownUploads";
+ public const String KeyAllowDownUploads = "allowDownUploads";
public const String KeyAllowCustomDownUploadLocation = "allowCustomDownUploadLocation";
- public const String KeyDownloadDirectoryOSX = "downloadDirectoryOSX";
- public const String KeyDownloadDirectoryWin = "downloadDirectoryWin";
- public const String KeyOpenDownloads = "openDownloads";
+ public const String KeyDownloadDirectoryOSX = "downloadDirectoryOSX";
+ public const String KeyDownloadDirectoryWin = "downloadDirectoryWin";
+ public const String KeyOpenDownloads = "openDownloads";
public const String KeyChooseFileToUploadPolicy = "chooseFileToUploadPolicy";
- public const String KeyDownloadPDFFiles = "downloadPDFFiles";
- public const String KeyAllowPDFPlugIn = "allowPDFPlugIn";
+ public const String KeyDownloadPDFFiles = "downloadPDFFiles";
+ public const String KeyAllowPDFPlugIn = "allowPDFPlugIn";
public const String KeyDownloadAndOpenSebConfig = "downloadAndOpenSebConfig";
- public const String KeyBackgroundOpenSEBConfig = "backgroundOpenSEBConfig";
+ public const String KeyBackgroundOpenSEBConfig = "backgroundOpenSEBConfig";
public const String KeyUseTemporaryDownUploadDirectory = "useTemporaryDownUploadDirectory";
// Group "Exam"
- public const String KeyExamKeySalt = "examKeySalt";
+ public const String KeyExamKeySalt = "examKeySalt";
public const String KeyExamSessionClearCookiesOnEnd = "examSessionClearCookiesOnEnd";
public const String KeyExamSessionClearCookiesOnStart = "examSessionClearCookiesOnStart";
- public const String KeyBrowserExamKey = "browserExamKey";
- public const String KeyBrowserURLSalt = "browserURLSalt";
+ public const String KeyBrowserExamKey = "browserExamKey";
+ public const String KeyBrowserURLSalt = "browserURLSalt";
public const String KeySendBrowserExamKey = "sendBrowserExamKey";
public const String KeyQuitURL = "quitURL";
public const String KeyQuitURLConfirm = "quitURLConfirm";
@@ -233,34 +234,34 @@ namespace SebWindowsConfig
public const String KeyMonitorProcesses = "monitorProcesses";
// Group "Applications - Permitted Processes"
- public const String KeyPermittedProcesses = "permittedProcesses";
+ public const String KeyPermittedProcesses = "permittedProcesses";
public const String KeyAllowSwitchToApplications = "allowSwitchToApplications";
- public const String KeyAllowFlashFullscreen = "allowFlashFullscreen";
+ public const String KeyAllowFlashFullscreen = "allowFlashFullscreen";
// Group "Applications - Prohibited Processes"
public const String KeyProhibitedProcesses = "prohibitedProcesses";
- public const String KeyActive = "active";
- public const String KeyAutostart = "autostart";
- public const String KeyIconInTaskbar = "iconInTaskbar";
- public const String KeyRunInBackground = "runInBackground";
- public const String KeyAllowUser = "allowUserToChooseApp";
+ public const String KeyActive = "active";
+ public const String KeyAutostart = "autostart";
+ public const String KeyIconInTaskbar = "iconInTaskbar";
+ public const String KeyRunInBackground = "runInBackground";
+ public const String KeyAllowUser = "allowUserToChooseApp";
public const String KeyCurrentUser = "currentUser";
- public const String KeyStrongKill = "strongKill";
- public const String KeyOS = "os";
- public const String KeyTitle = "title";
+ public const String KeyStrongKill = "strongKill";
+ public const String KeyOS = "os";
+ public const String KeyTitle = "title";
public const String KeyDescription = "description";
- public const String KeyExecutable = "executable";
+ public const String KeyExecutable = "executable";
public const String KeyOriginalName = "originalName";
- public const String KeyPath = "path";
- public const String KeyIdentifier = "identifier";
- public const String KeyUser = "user";
- public const String KeyArguments = "arguments";
- public const String KeyArgument = "argument";
+ public const String KeyPath = "path";
+ public const String KeyIdentifier = "identifier";
+ public const String KeyUser = "user";
+ public const String KeyArguments = "arguments";
+ public const String KeyArgument = "argument";
public const String KeyWindowHandlingProcess = "windowHandlingProcess";
// Group "Network"
- public const String KeyEnableURLFilter = "enableURLFilter";
+ public const String KeyEnableURLFilter = "enableURLFilter";
public const String KeyEnableURLContentFilter = "enableURLContentFilter";
// New "Network" - Filter
@@ -290,83 +291,83 @@ namespace SebWindowsConfig
public const String KeyPinEmbeddedCertificates = "pinEmbeddedCertificates";
// Group "Network - Proxies"
- public const String KeyProxySettingsPolicy = "proxySettingsPolicy";
+ public const String KeyProxySettingsPolicy = "proxySettingsPolicy";
- public const String KeyProxies = "proxies";
- public const String KeyExceptionsList = "ExceptionsList";
- public const String KeyExcludeSimpleHostnames = "ExcludeSimpleHostnames";
- public const String KeyFTPPassive = "FTPPassive";
+ public const String KeyProxies = "proxies";
+ public const String KeyExceptionsList = "ExceptionsList";
+ public const String KeyExcludeSimpleHostnames = "ExcludeSimpleHostnames";
+ public const String KeyFTPPassive = "FTPPassive";
- public const String KeyAutoDiscoveryEnabled = "AutoDiscoveryEnabled";
- public const String KeyAutoConfigurationEnabled = "AutoConfigurationEnabled";
+ public const String KeyAutoDiscoveryEnabled = "AutoDiscoveryEnabled";
+ public const String KeyAutoConfigurationEnabled = "AutoConfigurationEnabled";
public const String KeyAutoConfigurationJavaScript = "AutoConfigurationJavaScript";
- public const String KeyAutoConfigurationURL = "AutoConfigurationURL";
+ public const String KeyAutoConfigurationURL = "AutoConfigurationURL";
- public const String KeyAutoDiscovery = "";
+ public const String KeyAutoDiscovery = "";
public const String KeyAutoConfiguration = "";
- public const String KeyHTTP = "HTTP";
- public const String KeyHTTPS = "HTTPS";
- public const String KeyFTP = "FTP";
- public const String KeySOCKS = "SOCKS";
- public const String KeyRTSP = "RTSP";
+ public const String KeyHTTP = "HTTP";
+ public const String KeyHTTPS = "HTTPS";
+ public const String KeyFTP = "FTP";
+ public const String KeySOCKS = "SOCKS";
+ public const String KeyRTSP = "RTSP";
- public const String KeyEnable = "Enable";
- public const String KeyPort = "Port";
- public const String KeyHost = "Proxy";
+ public const String KeyEnable = "Enable";
+ public const String KeyPort = "Port";
+ public const String KeyHost = "Proxy";
public const String KeyRequires = "RequiresPassword";
public const String KeyUsername = "Username";
public const String KeyPassword = "Password";
- public const String KeyHTTPEnable = "HTTPEnable";
- public const String KeyHTTPPort = "HTTPPort";
- public const String KeyHTTPHost = "HTTPProxy";
+ public const String KeyHTTPEnable = "HTTPEnable";
+ public const String KeyHTTPPort = "HTTPPort";
+ public const String KeyHTTPHost = "HTTPProxy";
public const String KeyHTTPRequires = "HTTPRequiresPassword";
public const String KeyHTTPUsername = "HTTPUsername";
public const String KeyHTTPPassword = "HTTPPassword";
- public const String KeyHTTPSEnable = "HTTPSEnable";
- public const String KeyHTTPSPort = "HTTPSPort";
- public const String KeyHTTPSHost = "HTTPSProxy";
+ public const String KeyHTTPSEnable = "HTTPSEnable";
+ public const String KeyHTTPSPort = "HTTPSPort";
+ public const String KeyHTTPSHost = "HTTPSProxy";
public const String KeyHTTPSRequires = "HTTPSRequiresPassword";
public const String KeyHTTPSUsername = "HTTPSUsername";
public const String KeyHTTPSPassword = "HTTPSPassword";
- public const String KeyFTPEnable = "FTPEnable";
- public const String KeyFTPPort = "FTPPort";
- public const String KeyFTPHost = "FTPProxy";
+ public const String KeyFTPEnable = "FTPEnable";
+ public const String KeyFTPPort = "FTPPort";
+ public const String KeyFTPHost = "FTPProxy";
public const String KeyFTPRequires = "FTPRequiresPassword";
public const String KeyFTPUsername = "FTPUsername";
public const String KeyFTPPassword = "FTPPassword";
- public const String KeySOCKSEnable = "SOCKSEnable";
- public const String KeySOCKSPort = "SOCKSPort";
- public const String KeySOCKSHost = "SOCKSProxy";
+ public const String KeySOCKSEnable = "SOCKSEnable";
+ public const String KeySOCKSPort = "SOCKSPort";
+ public const String KeySOCKSHost = "SOCKSProxy";
public const String KeySOCKSRequires = "SOCKSRequiresPassword";
public const String KeySOCKSUsername = "SOCKSUsername";
public const String KeySOCKSPassword = "SOCKSPassword";
- public const String KeyRTSPEnable = "RTSPEnable";
- public const String KeyRTSPPort = "RTSPPort";
- public const String KeyRTSPHost = "RTSPProxy";
+ public const String KeyRTSPEnable = "RTSPEnable";
+ public const String KeyRTSPPort = "RTSPPort";
+ public const String KeyRTSPHost = "RTSPProxy";
public const String KeyRTSPRequires = "RTSPRequiresPassword";
public const String KeyRTSPUsername = "RTSPUsername";
public const String KeyRTSPPassword = "RTSPPassword";
// Tab "Security"
- public const String KeySebServicePolicy = "sebServicePolicy";
+ public const String KeySebServicePolicy = "sebServicePolicy";
public const String KeySebServiceIgnore = "sebServiceIgnore";
public const String KeyAllowVirtualMachine = "allowVirtualMachine";
public const String KeyAllowScreenSharing = "allowScreenSharing";
public const String KeyEnablePrivateClipboard = "enablePrivateClipboard";
- public const String KeyCreateNewDesktop = "createNewDesktop";
- public const String KeyKillExplorerShell = "killExplorerShell";
+ public const String KeyCreateNewDesktop = "createNewDesktop";
+ public const String KeyKillExplorerShell = "killExplorerShell";
public const String KeyAllowUserSwitching = "allowUserSwitching";
- public const String KeyEnableLogging = "enableLogging";
+ public const String KeyEnableLogging = "enableLogging";
public const String KeyAllowApplicationLog = "allowApplicationLog";
public const String KeyShowApplicationLogButton = "showApplicationLogButton";
- public const String KeyLogDirectoryOSX = "logDirectoryOSX";
- public const String KeyLogDirectoryWin = "logDirectoryWin";
+ public const String KeyLogDirectoryOSX = "logDirectoryOSX";
+ public const String KeyLogDirectoryWin = "logDirectoryWin";
public const String KeyAllowWLAN = "allowWlan";
public const String KeyLockOnMessageSocketClose = "lockOnMessageSocketClose";
public const String KeyAllowChromeNotifications = "enableChromeNotifications";
@@ -388,13 +389,13 @@ namespace SebWindowsConfig
// Group "Registry"
// Group "Inside SEB"
- public const String KeyInsideSebEnableSwitchUser = "insideSebEnableSwitchUser";
- public const String KeyInsideSebEnableLockThisComputer = "insideSebEnableLockThisComputer";
- public const String KeyInsideSebEnableChangeAPassword = "insideSebEnableChangeAPassword";
- public const String KeyInsideSebEnableStartTaskManager = "insideSebEnableStartTaskManager";
- public const String KeyInsideSebEnableLogOff = "insideSebEnableLogOff";
- public const String KeyInsideSebEnableShutDown = "insideSebEnableShutDown";
- public const String KeyInsideSebEnableEaseOfAccess = "insideSebEnableEaseOfAccess";
+ public const String KeyInsideSebEnableSwitchUser = "insideSebEnableSwitchUser";
+ public const String KeyInsideSebEnableLockThisComputer = "insideSebEnableLockThisComputer";
+ public const String KeyInsideSebEnableChangeAPassword = "insideSebEnableChangeAPassword";
+ public const String KeyInsideSebEnableStartTaskManager = "insideSebEnableStartTaskManager";
+ public const String KeyInsideSebEnableLogOff = "insideSebEnableLogOff";
+ public const String KeyInsideSebEnableShutDown = "insideSebEnableShutDown";
+ public const String KeyInsideSebEnableEaseOfAccess = "insideSebEnableEaseOfAccess";
public const String KeyInsideSebEnableVmWareClientShade = "insideSebEnableVmWareClientShade";
public const String KeyInsideSebEnableNetworkConnectionSelector = "insideSebEnableNetworkConnectionSelector";
public const String KeySetVmwareConfiguration = "setVmwareConfiguration";
@@ -403,27 +404,27 @@ namespace SebWindowsConfig
public const String KeyHookKeys = "hookKeys";
// Group "Special Keys"
- public const String KeyEnableEsc = "enableEsc";
+ public const String KeyEnableEsc = "enableEsc";
public const String KeyEnablePrintScreen = "enablePrintScreen";
- public const String KeyEnableCtrlEsc = "enableCtrlEsc";
- public const String KeyEnableAltEsc = "enableAltEsc";
- public const String KeyEnableAltTab = "enableAltTab";
- public const String KeyEnableAltF4 = "enableAltF4";
- public const String KeyEnableStartMenu = "enableStartMenu";
+ public const String KeyEnableCtrlEsc = "enableCtrlEsc";
+ public const String KeyEnableAltEsc = "enableAltEsc";
+ public const String KeyEnableAltTab = "enableAltTab";
+ public const String KeyEnableAltF4 = "enableAltF4";
+ public const String KeyEnableStartMenu = "enableStartMenu";
public const String KeyEnableMiddleMouse = "enableMiddleMouse";
- public const String KeyEnableRightMouse = "enableRightMouse";
- public const String KeyEnableAltMouseWheel = "enableAltMouseWheel";
+ public const String KeyEnableRightMouse = "enableRightMouse";
+ public const String KeyEnableAltMouseWheel = "enableAltMouseWheel";
// Group "Function Keys"
- public const String KeyEnableF1 = "enableF1";
- public const String KeyEnableF2 = "enableF2";
- public const String KeyEnableF3 = "enableF3";
- public const String KeyEnableF4 = "enableF4";
- public const String KeyEnableF5 = "enableF5";
- public const String KeyEnableF6 = "enableF6";
- public const String KeyEnableF7 = "enableF7";
- public const String KeyEnableF8 = "enableF8";
- public const String KeyEnableF9 = "enableF9";
+ public const String KeyEnableF1 = "enableF1";
+ public const String KeyEnableF2 = "enableF2";
+ public const String KeyEnableF3 = "enableF3";
+ public const String KeyEnableF4 = "enableF4";
+ public const String KeyEnableF5 = "enableF5";
+ public const String KeyEnableF6 = "enableF6";
+ public const String KeyEnableF7 = "enableF7";
+ public const String KeyEnableF8 = "enableF8";
+ public const String KeyEnableF9 = "enableF9";
public const String KeyEnableF10 = "enableF10";
public const String KeyEnableF11 = "enableF11";
public const String KeyEnableF12 = "enableF12";
@@ -448,11 +449,11 @@ namespace SebWindowsConfig
// *********************************
// Some settings are not stored in Plists but in Arrays
- public static String [] strArrayDefault = new String [ValNum + 1];
- public static String [] strArrayCurrent = new String [ValNum + 1];
+ public static String[] strArrayDefault = new String[ValNum + 1];
+ public static String[] strArrayCurrent = new String[ValNum + 1];
- public static int[] intArrayDefault = new int[ValNum + 1];
- public static int[] intArrayCurrent = new int[ValNum + 1];
+ public static int[] intArrayDefault = new int[ValNum + 1];
+ public static int[] intArrayCurrent = new int[ValNum + 1];
// Class SEBSettings contains all settings
// and is used for importing/exporting the settings
@@ -461,58 +462,58 @@ namespace SebWindowsConfig
public static DictObj settingsCurrent = new DictObj();
public static DictObj settingsCurrentOriginal = new DictObj();
- public static int permittedProcessIndex;
- public static ListObj permittedProcessList = new ListObj();
- public static DictObj permittedProcessData = new DictObj();
- public static DictObj permittedProcessDataDefault = new DictObj();
+ public static int permittedProcessIndex;
+ public static ListObj permittedProcessList = new ListObj();
+ public static DictObj permittedProcessData = new DictObj();
+ public static DictObj permittedProcessDataDefault = new DictObj();
- public static int permittedArgumentIndex;
- public static ListObj permittedArgumentList = new ListObj();
- public static DictObj permittedArgumentData = new DictObj();
- public static DictObj permittedArgumentDataDefault = new DictObj();
+ public static int permittedArgumentIndex;
+ public static ListObj permittedArgumentList = new ListObj();
+ public static DictObj permittedArgumentData = new DictObj();
+ public static DictObj permittedArgumentDataDefault = new DictObj();
public static DictObj permittedArgumentDataXulRunner1 = new DictObj();
public static DictObj permittedArgumentDataXulRunner2 = new DictObj();
- public static ListObj permittedArgumentListXulRunner = new ListObj();
+ public static ListObj permittedArgumentListXulRunner = new ListObj();
public static ListObj additionalResourcesList = new ListObj();
public static DictObj additionalResourcesData = new DictObj();
public static DictObj additionalResourcesDataDefault = new DictObj();
- public static int prohibitedProcessIndex;
- public static ListObj prohibitedProcessList = new ListObj();
- public static DictObj prohibitedProcessData = new DictObj();
+ public static int prohibitedProcessIndex;
+ public static ListObj prohibitedProcessList = new ListObj();
+ public static DictObj prohibitedProcessData = new DictObj();
public static DictObj prohibitedProcessDataDefault = new DictObj();
private static List prohibitedProcessesDefault;
private static List prohibitedProcessesDefaultStrict;
- public static int urlFilterRuleIndex;
- public static ListObj urlFilterRuleList = new ListObj();
- public static DictObj urlFilterRuleData = new DictObj();
+ public static int urlFilterRuleIndex;
+ public static ListObj urlFilterRuleList = new ListObj();
+ public static DictObj urlFilterRuleData = new DictObj();
public static DictObj urlFilterRuleDataDefault = new DictObj();
public static DictObj urlFilterRuleDataStorage = new DictObj();
- public static int urlFilterActionIndex;
- public static ListObj urlFilterActionList = new ListObj();
+ public static int urlFilterActionIndex;
+ public static ListObj urlFilterActionList = new ListObj();
public static ListObj urlFilterActionListDefault = new ListObj();
public static ListObj urlFilterActionListStorage = new ListObj();
- public static DictObj urlFilterActionData = new DictObj();
+ public static DictObj urlFilterActionData = new DictObj();
public static DictObj urlFilterActionDataDefault = new DictObj();
public static DictObj urlFilterActionDataStorage = new DictObj();
- public static int embeddedCertificateIndex;
- public static ListObj embeddedCertificateList = new ListObj();
- public static DictObj embeddedCertificateData = new DictObj();
+ public static int embeddedCertificateIndex;
+ public static ListObj embeddedCertificateList = new ListObj();
+ public static DictObj embeddedCertificateData = new DictObj();
public static DictObj embeddedCertificateDataDefault = new DictObj();
- public static DictObj proxiesData = new DictObj();
+ public static DictObj proxiesData = new DictObj();
public static DictObj proxiesDataDefault = new DictObj();
- public static int proxyProtocolIndex;
+ public static int proxyProtocolIndex;
- public static int bypassedProxyIndex;
- public static ListObj bypassedProxyList = new ListObj();
- public static String bypassedProxyData = "";
- public static String bypassedProxyDataDefault = "";
+ public static int bypassedProxyIndex;
+ public static ListObj bypassedProxyList = new ListObj();
+ public static String bypassedProxyData = "";
+ public static String bypassedProxyDataDefault = "";
public static object SebWindowsConfigForm { get; private set; }
@@ -531,46 +532,46 @@ namespace SebWindowsConfig
SEBSettings.settingsDefault = new DictObj();
SEBSettings.settingsCurrent = new DictObj();
- SEBSettings.permittedProcessList = new ListObj();
- SEBSettings.permittedProcessData = new DictObj();
- SEBSettings.permittedProcessDataDefault = new DictObj();
+ SEBSettings.permittedProcessList = new ListObj();
+ SEBSettings.permittedProcessData = new DictObj();
+ SEBSettings.permittedProcessDataDefault = new DictObj();
- SEBSettings.permittedArgumentList = new ListObj();
- SEBSettings.permittedArgumentData = new DictObj();
- SEBSettings.permittedArgumentDataDefault = new DictObj();
+ SEBSettings.permittedArgumentList = new ListObj();
+ SEBSettings.permittedArgumentData = new DictObj();
+ SEBSettings.permittedArgumentDataDefault = new DictObj();
SEBSettings.permittedArgumentDataXulRunner1 = new DictObj();
SEBSettings.permittedArgumentDataXulRunner2 = new DictObj();
- SEBSettings.permittedArgumentListXulRunner = new ListObj();
+ SEBSettings.permittedArgumentListXulRunner = new ListObj();
- SEBSettings.prohibitedProcessList = new ListObj();
- SEBSettings.prohibitedProcessData = new DictObj();
+ SEBSettings.prohibitedProcessList = new ListObj();
+ SEBSettings.prohibitedProcessData = new DictObj();
SEBSettings.prohibitedProcessDataDefault = new DictObj();
SEBSettings.additionalResourcesList = new ListObj();
SEBSettings.additionalResourcesData = new DictObj();
SEBSettings.additionalResourcesDataDefault = new DictObj();
- SEBSettings.urlFilterRuleList = new ListObj();
- SEBSettings.urlFilterRuleData = new DictObj();
+ SEBSettings.urlFilterRuleList = new ListObj();
+ SEBSettings.urlFilterRuleData = new DictObj();
SEBSettings.urlFilterRuleDataDefault = new DictObj();
SEBSettings.urlFilterRuleDataStorage = new DictObj();
- SEBSettings.urlFilterActionList = new ListObj();
+ SEBSettings.urlFilterActionList = new ListObj();
SEBSettings.urlFilterActionListDefault = new ListObj();
SEBSettings.urlFilterActionListStorage = new ListObj();
- SEBSettings.urlFilterActionData = new DictObj();
+ SEBSettings.urlFilterActionData = new DictObj();
SEBSettings.urlFilterActionDataDefault = new DictObj();
SEBSettings.urlFilterActionDataStorage = new DictObj();
- SEBSettings.embeddedCertificateList = new ListObj();
- SEBSettings.embeddedCertificateData = new DictObj();
+ SEBSettings.embeddedCertificateList = new ListObj();
+ SEBSettings.embeddedCertificateData = new DictObj();
SEBSettings.embeddedCertificateDataDefault = new DictObj();
- SEBSettings.proxiesData = new DictObj();
+ SEBSettings.proxiesData = new DictObj();
SEBSettings.proxiesDataDefault = new DictObj();
- SEBSettings.bypassedProxyList = new ListObj();
- SEBSettings.bypassedProxyData = "";
+ SEBSettings.bypassedProxyList = new ListObj();
+ SEBSettings.bypassedProxyData = "";
SEBSettings.bypassedProxyDataDefault = "";
@@ -591,23 +592,23 @@ namespace SebWindowsConfig
SEBSettings.settingsDefault.Add(SEBSettings.KeyOriginatorVersion, "SEB_Win_2.1.1");
// Default settings for group "General"
- SEBSettings.settingsDefault.Add(SEBSettings.KeyStartURL , "https://safeexambrowser.org/start");
- SEBSettings.settingsDefault.Add(SEBSettings.KeyStartResource , "");
- SEBSettings.settingsDefault.Add(SEBSettings.KeySebServerURL , "");
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyStartURL, "https://safeexambrowser.org/start");
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyStartResource, "");
+ SEBSettings.settingsDefault.Add(SEBSettings.KeySebServerURL, "");
SEBSettings.settingsDefault.Add(SEBSettings.KeyHashedAdminPassword, "");
- SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowQuit , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyIgnoreExitKeys , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyHashedQuitPassword , "");
- SEBSettings.settingsDefault.Add(SEBSettings.KeyExitKey1, 2);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowQuit, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyIgnoreExitKeys, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyHashedQuitPassword, "");
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyExitKey1, 2);
SEBSettings.settingsDefault.Add(SEBSettings.KeyExitKey2, 10);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyExitKey3, 5);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyExitKey3, 5);
SEBSettings.settingsDefault.Add(SEBSettings.KeySebMode, 0);
SEBSettings.settingsDefault.Add(SEBSettings.KeyBrowserMessagingSocket, "ws://localhost:8706");
SEBSettings.settingsDefault.Add(SEBSettings.KeyBrowserMessagingPingTime, 120000);
// Default settings for group "Config File"
- SEBSettings.settingsDefault.Add(SEBSettings.KeySebConfigPurpose , 1);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowPreferencesWindow , true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeySebConfigPurpose, 1);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowPreferencesWindow, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyUseAsymmetricOnlyEncryption, false);
// CryptoIdentity is stored additionally
@@ -615,68 +616,68 @@ namespace SebWindowsConfig
SEBSettings.strArrayDefault[SEBSettings.ValCryptoIdentity] = "";
// Default settings for group "User Interface"
- SEBSettings.settingsDefault.Add(SEBSettings.KeyBrowserViewMode , 0);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyBrowserViewMode, 0);
SEBSettings.settingsDefault.Add(SEBSettings.KeyBrowserWindowAllowAddressBar, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowAllowAddressBar, false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyMainBrowserWindowWidth , "100%");
- SEBSettings.settingsDefault.Add(SEBSettings.KeyMainBrowserWindowHeight , "100%");
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyMainBrowserWindowWidth, "100%");
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyMainBrowserWindowHeight, "100%");
SEBSettings.settingsDefault.Add(SEBSettings.KeyMainBrowserWindowPositioning, 1);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableBrowserWindowToolbar , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyHideBrowserWindowToolbar , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyShowMenuBar , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyShowTaskBar , true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableBrowserWindowToolbar, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyHideBrowserWindowToolbar, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyShowMenuBar, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyShowTaskBar, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyShowSideMenu, true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyTaskBarHeight , 40);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyTouchOptimized , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableZoomText , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableZoomPage , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyZoomMode , 0);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowSpellCheck , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowDictionaryLookup , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowSpellCheckDictionary , new ListObj());
- SEBSettings.settingsDefault.Add(SEBSettings.KeyAdditionalDictionaries , new ListObj());
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyTaskBarHeight, 40);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyTouchOptimized, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableZoomText, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableZoomPage, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyZoomMode, 0);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowSpellCheck, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowDictionaryLookup, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowSpellCheckDictionary, new ListObj());
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyAdditionalDictionaries, new ListObj());
SEBSettings.settingsDefault.Add(SEBSettings.KeyShowReloadButton, true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyShowTime , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyShowInputLanguage , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableTouchExit , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyOskBehavior , 2);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyAudioControlEnabled , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyAudioMute , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyAudioVolumeLevel , 25);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyAudioSetVolumeLevel , false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyShowTime, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyShowInputLanguage, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableTouchExit, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyOskBehavior, 2);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyAudioControlEnabled, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyAudioMute, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyAudioVolumeLevel, 25);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyAudioSetVolumeLevel, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowDeveloperConsole, false);
//Touch Settings
- SEBSettings.settingsDefault.Add(SEBSettings.KeyBrowserScreenKeyboard , false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyBrowserScreenKeyboard, false);
// MainBrowserWindow Width and Height is stored additionally
- SEBSettings.intArrayDefault[SEBSettings.ValMainBrowserWindowWidth ] = 2;
+ SEBSettings.intArrayDefault[SEBSettings.ValMainBrowserWindowWidth] = 2;
SEBSettings.intArrayDefault[SEBSettings.ValMainBrowserWindowHeight] = 2;
- SEBSettings.strArrayDefault[SEBSettings.ValMainBrowserWindowWidth ] = "100%";
+ SEBSettings.strArrayDefault[SEBSettings.ValMainBrowserWindowWidth] = "100%";
SEBSettings.strArrayDefault[SEBSettings.ValMainBrowserWindowHeight] = "100%";
// Default settings for group "Browser"
- SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowByLinkPolicy , 2);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowByScriptPolicy , 2);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowByLinkBlockForeign , false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowByLinkPolicy, 2);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowByScriptPolicy, 2);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowByLinkBlockForeign, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowByScriptBlockForeign, false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowByLinkWidth , "1000");
- SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowByLinkHeight , "100%");
- SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowByLinkPositioning , 2);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowUrlPolicy , 0);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowByLinkWidth, "1000");
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowByLinkHeight, "100%");
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowByLinkPositioning, 2);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowUrlPolicy, 0);
SEBSettings.settingsDefault.Add(SEBSettings.KeyMainBrowserWindowUrlPolicy, 0);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnablePlugIns , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableJava , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableJavaScript , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyBlockPopUpWindows , false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnablePlugIns, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableJava, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableJavaScript, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyBlockPopUpWindows, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowVideoCapture, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowAudioCapture, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowBrowsingBackForward, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowNavigation, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyRemoveBrowserProfile, true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyDisableLocalStorage , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableSebBrowser , true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyDisableLocalStorage, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableSebBrowser, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyBrowserWindowAllowReload, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyNewBrowserWindowAllowReload, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyShowReloadWarning, true);
@@ -692,33 +693,34 @@ namespace SebWindowsConfig
SEBSettings.settingsDefault.Add(SEBSettings.KeyBrowserWindowTitleSuffix, "");
SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowPDFReaderToolbar, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowFind, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowPrint, false);
// NewBrowserWindow Width and Height is stored additionally
- SEBSettings.intArrayDefault[SEBSettings.ValNewBrowserWindowByLinkWidth ] = 4;
+ SEBSettings.intArrayDefault[SEBSettings.ValNewBrowserWindowByLinkWidth] = 4;
SEBSettings.intArrayDefault[SEBSettings.ValNewBrowserWindowByLinkHeight] = 2;
- SEBSettings.strArrayDefault[SEBSettings.ValNewBrowserWindowByLinkWidth ] = "1000";
+ SEBSettings.strArrayDefault[SEBSettings.ValNewBrowserWindowByLinkWidth] = "1000";
SEBSettings.strArrayDefault[SEBSettings.ValNewBrowserWindowByLinkHeight] = "100%";
// Default settings for group "DownUploads"
- SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowDownUploads , true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowDownUploads, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowCustomDownUploadLocation, false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyDownloadDirectoryOSX , "~/Downloads");
- SEBSettings.settingsDefault.Add(SEBSettings.KeyDownloadDirectoryWin , "");
- SEBSettings.settingsDefault.Add(SEBSettings.KeyOpenDownloads , false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyDownloadDirectoryOSX, "~/Downloads");
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyDownloadDirectoryWin, "");
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyOpenDownloads, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyChooseFileToUploadPolicy, 0);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyDownloadPDFFiles , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowPDFPlugIn , false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyDownloadPDFFiles, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowPDFPlugIn, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyDownloadAndOpenSebConfig, true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyBackgroundOpenSEBConfig , false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyBackgroundOpenSEBConfig, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyUseTemporaryDownUploadDirectory, false);
// Default settings for group "Exam"
- SEBSettings.settingsDefault.Add(SEBSettings.KeyExamKeySalt , new Byte[] {});
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyExamKeySalt, new Byte[] { });
SEBSettings.settingsDefault.Add(SEBSettings.KeyExamSessionClearCookiesOnEnd, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyExamSessionClearCookiesOnStart, true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyBrowserExamKey , "");
- SEBSettings.settingsDefault.Add(SEBSettings.KeyBrowserURLSalt , true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyBrowserExamKey, "");
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyBrowserURLSalt, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeySendBrowserExamKey, false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyQuitURL , "");
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyQuitURL, "");
SEBSettings.settingsDefault.Add(SEBSettings.KeyQuitURLConfirm, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyRestartExamURL, "");
SEBSettings.settingsDefault.Add(SEBSettings.KeyRestartExamUseStartURL, false);
@@ -733,11 +735,11 @@ namespace SebWindowsConfig
SEBSettings.settingsDefault.Add(SEBSettings.KeyAdditionalResources, new ListObj());
// Default settings for group "Applications"
- SEBSettings.settingsDefault.Add(SEBSettings.KeyMonitorProcesses , true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyMonitorProcesses, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowSwitchToApplications, false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowFlashFullscreen , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyPermittedProcesses , new ListObj());
- SEBSettings.settingsDefault.Add(SEBSettings.KeyProhibitedProcesses , new ListObj());
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowFlashFullscreen, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyPermittedProcesses, new ListObj());
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyProhibitedProcesses, new ListObj());
// Default settings for permitted argument data
SEBSettings.permittedArgumentDataDefault.Clear();
@@ -761,34 +763,34 @@ namespace SebWindowsConfig
// Default settings for permitted process data
SEBSettings.permittedProcessDataDefault.Clear();
- SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyActive , true);
- SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyAutostart , true);
- SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyIconInTaskbar , true);
- SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyRunInBackground , false);
- SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyAllowUser , false);
- SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyStrongKill , false);
+ SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyActive, true);
+ SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyAutostart, true);
+ SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyIconInTaskbar, true);
+ SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyRunInBackground, false);
+ SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyAllowUser, false);
+ SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyStrongKill, false);
SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyOS, IntWin);
- SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyTitle , "");
+ SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyTitle, "");
SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyDescription, "");
- SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyExecutable , "");
+ SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyExecutable, "");
SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyOriginalName, "");
- SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyPath , "");
- SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyIdentifier , "");
- SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyWindowHandlingProcess , "");
- SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyArguments , new ListObj());
+ SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyPath, "");
+ SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyIdentifier, "");
+ SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyWindowHandlingProcess, "");
+ SEBSettings.permittedProcessDataDefault.Add(SEBSettings.KeyArguments, new ListObj());
// Default settings for prohibited process data
SEBSettings.prohibitedProcessDataDefault.Clear();
- SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyActive , true);
+ SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyActive, true);
SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyCurrentUser, true);
- SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyStrongKill , false);
- SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyOS , IntWin);
- SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyExecutable , "");
+ SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyStrongKill, false);
+ SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyOS, IntWin);
+ SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyExecutable, "");
SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyOriginalName, "");
SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyDescription, "");
- SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyIdentifier , "");
- SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyWindowHandlingProcess , "");
- SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyUser , "");
+ SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyIdentifier, "");
+ SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyWindowHandlingProcess, "");
+ SEBSettings.prohibitedProcessDataDefault.Add(SEBSettings.KeyUser, "");
SEBSettings.prohibitedProcessesDefault = new List
{
@@ -845,9 +847,9 @@ namespace SebWindowsConfig
};
// Default settings for group "Network - Filter"
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableURLFilter , false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableURLFilter, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableURLContentFilter, false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyURLFilterRules , new ListObj());
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyURLFilterRules, new ListObj());
//// Create a default action
//SEBSettings.urlFilterActionDataDefault.Clear();
@@ -909,45 +911,45 @@ namespace SebWindowsConfig
// Default settings for group "Network - Proxies"
SEBSettings.proxiesDataDefault.Clear();
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyExceptionsList , new ListObj());
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyExcludeSimpleHostnames , false);
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyAutoDiscoveryEnabled , false);
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyAutoConfigurationEnabled , false);
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyExceptionsList, new ListObj());
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyExcludeSimpleHostnames, false);
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyAutoDiscoveryEnabled, false);
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyAutoConfigurationEnabled, false);
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyAutoConfigurationJavaScript, "");
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyAutoConfigurationURL , "");
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyFTPPassive , true);
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyAutoConfigurationURL, "");
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyFTPPassive, true);
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPEnable , false);
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPPort , 80);
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPHost , "");
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPEnable, false);
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPPort, 80);
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPHost, "");
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPRequires, false);
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPUsername, "");
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPPassword, "");
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPSEnable , false);
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPSPort , 443);
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPSHost , "");
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPSEnable, false);
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPSPort, 443);
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPSHost, "");
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPSRequires, false);
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPSUsername, "");
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyHTTPSPassword, "");
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyFTPEnable , false);
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyFTPPort , 21);
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyFTPHost , "");
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyFTPEnable, false);
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyFTPPort, 21);
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyFTPHost, "");
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyFTPRequires, false);
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyFTPUsername, "");
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyFTPPassword, "");
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeySOCKSEnable , false);
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeySOCKSPort , 1080);
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeySOCKSHost , "");
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeySOCKSEnable, false);
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeySOCKSPort, 1080);
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeySOCKSHost, "");
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeySOCKSRequires, false);
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeySOCKSUsername, "");
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeySOCKSPassword, "");
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyRTSPEnable , false);
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyRTSPPort , 554);
- SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyRTSPHost , "");
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyRTSPEnable, false);
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyRTSPPort, 554);
+ SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyRTSPHost, "");
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyRTSPRequires, false);
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyRTSPUsername, "");
SEBSettings.proxiesDataDefault.Add(SEBSettings.KeyRTSPPassword, "");
@@ -955,21 +957,21 @@ namespace SebWindowsConfig
SEBSettings.bypassedProxyDataDefault = "";
SEBSettings.settingsDefault.Add(SEBSettings.KeyProxySettingsPolicy, 0);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyProxies , SEBSettings.proxiesDataDefault);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyProxies, SEBSettings.proxiesDataDefault);
// Default settings for group "Security"
- SEBSettings.settingsDefault.Add(SEBSettings.KeySebServicePolicy , 1);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeySebServicePolicy, 1);
SEBSettings.settingsDefault.Add(SEBSettings.KeySebServiceIgnore, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowVirtualMachine, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowScreenSharing, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyEnablePrivateClipboard, true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyCreateNewDesktop , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyKillExplorerShell , false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyCreateNewDesktop, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyKillExplorerShell, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableLogging, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowApplicationLog, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyShowApplicationLogButton, false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyLogDirectoryOSX , "~/Documents");
- SEBSettings.settingsDefault.Add(SEBSettings.KeyLogDirectoryWin , "");
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyLogDirectoryOSX, "~/Documents");
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyLogDirectoryWin, "");
SEBSettings.settingsDefault.Add(SEBSettings.KeyAllowWLAN, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyLockOnMessageSocketClose, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyMinMacOSVersion, 4);
@@ -996,13 +998,13 @@ namespace SebWindowsConfig
SEBSettings.strArrayDefault[SEBSettings.ValAllowedDisplaysMaxNumber] = "1";
// Default settings for group "Inside SEB"
- SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableSwitchUser , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableLockThisComputer , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableChangeAPassword , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableStartTaskManager , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableLogOff , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableShutDown , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableEaseOfAccess , false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableSwitchUser, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableLockThisComputer, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableChangeAPassword, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableStartTaskManager, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableLogOff, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableShutDown, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableEaseOfAccess, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableVmWareClientShade, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyInsideSebEnableNetworkConnectionSelector, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeySetVmwareConfiguration, false);
@@ -1011,27 +1013,27 @@ namespace SebWindowsConfig
SEBSettings.settingsDefault.Add(SEBSettings.KeyHookKeys, true);
// Default settings for group "Special Keys"
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableEsc , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableCtrlEsc , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableAltEsc , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableAltTab , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableAltF4 , false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableStartMenu , false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableEsc, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableCtrlEsc, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableAltEsc, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableAltTab, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableAltF4, false);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableStartMenu, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableMiddleMouse, false);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableRightMouse , true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableRightMouse, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyEnablePrintScreen, false);
SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableAltMouseWheel, false);
// Default settings for group "Function Keys"
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF1 , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF2 , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF3 , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF4 , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF5 , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF6 , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF7 , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF8 , true);
- SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF9 , true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF1, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF2, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF3, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF4, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF5, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF6, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF7, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF8, true);
+ SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF9, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF10, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF11, true);
SEBSettings.settingsDefault.Add(SEBSettings.KeyEnableF12, true);
@@ -1117,98 +1119,98 @@ namespace SebWindowsConfig
// ************************
// Copy settings dictionary
// ************************
-/*
- public static void CopySettingsDictionary(ref DictObj sebSettingsSource,
- ref DictObj sebSettingsTarget)
- {
- // Copy all settings from one dictionary to another
- // Create a dictionary "target settings".
- // Copy source settings to target settings
- foreach (KeyValue pair in sebSettingsSource)
- {
- string key = pair.Key;
- object value = pair.Value;
+ /*
+ public static void CopySettingsDictionary(ref DictObj sebSettingsSource,
+ ref DictObj sebSettingsTarget)
+ {
+ // Copy all settings from one dictionary to another
+ // Create a dictionary "target settings".
+ // Copy source settings to target settings
+ foreach (KeyValue pair in sebSettingsSource)
+ {
+ string key = pair.Key;
+ object value = pair.Value;
- if (sebSettingsTarget.ContainsKey(key))
- sebSettingsTarget[key] = value;
- else sebSettingsTarget.Add(key, value);
- }
+ if (sebSettingsTarget.ContainsKey(key))
+ sebSettingsTarget[key] = value;
+ else sebSettingsTarget.Add(key, value);
+ }
- return;
- }
-*/
+ return;
+ }
+ */
// **************
// Merge settings
// **************
-/*
- public static void MergeSettings(ref object objectSource, ref object objectTarget)
- {
- // Determine the type of the input objects
- string typeSource = objectSource.GetType().ToString();
- string typeTarget = objectTarget.GetType().ToString();
-
- if (typeSource != typeTarget) return;
-
- // Treat the complex datatype Dictionary
- if (typeSource.Contains("Dictionary"))
- {
- DictObj dictSource = (DictObj)objectSource;
- DictObj dictTarget = (DictObj)objectTarget;
-
- //foreach (KeyValue pair in dictSource)
- for (int index = 0; index < dictSource.Count; index++)
+ /*
+ public static void MergeSettings(ref object objectSource, ref object objectTarget)
{
- KeyValue pair = dictSource.ElementAt(index);
- string key = pair.Key;
- object value = pair.Value;
- string type = pair.Value.GetType().ToString();
+ // Determine the type of the input objects
+ string typeSource = objectSource.GetType().ToString();
+ string typeTarget = objectTarget.GetType().ToString();
- if (dictTarget.ContainsKey(key))
- dictTarget[key] = value;
- else dictTarget.Add(key, value);
+ if (typeSource != typeTarget) return;
- if (type.Contains("Dictionary") || type.Contains("List"))
+ // Treat the complex datatype Dictionary
+ if (typeSource.Contains("Dictionary"))
{
- object childSource = dictSource[key];
- object childTarget = dictTarget[key];
- MergeSettings(ref childSource, ref childTarget);
- }
+ DictObj dictSource = (DictObj)objectSource;
+ DictObj dictTarget = (DictObj)objectTarget;
- } // next (KeyValue pair in dictSource)
- } // end if (typeSource.Contains("Dictionary"))
+ //foreach (KeyValue pair in dictSource)
+ for (int index = 0; index < dictSource.Count; index++)
+ {
+ KeyValue pair = dictSource.ElementAt(index);
+ string key = pair.Key;
+ object value = pair.Value;
+ string type = pair.Value.GetType().ToString();
+
+ if (dictTarget.ContainsKey(key))
+ dictTarget[key] = value;
+ else dictTarget.Add(key, value);
+
+ if (type.Contains("Dictionary") || type.Contains("List"))
+ {
+ object childSource = dictSource[key];
+ object childTarget = dictTarget[key];
+ MergeSettings(ref childSource, ref childTarget);
+ }
+
+ } // next (KeyValue pair in dictSource)
+ } // end if (typeSource.Contains("Dictionary"))
- // Treat the complex datatype List