From 6b7efd5afead39fa1a2eab3aef53ccbffc714292 Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Sun, 9 Oct 2022 17:18:31 +0200 Subject: [PATCH] 1.4.2 --- SandboxiePlus/SandMan/Forms/OptionsWindow.ui | 67 ++++++++++--------- .../SandMan/Windows/OptionsAdvanced.cpp | 6 +- 2 files changed, 42 insertions(+), 31 deletions(-) diff --git a/SandboxiePlus/SandMan/Forms/OptionsWindow.ui b/SandboxiePlus/SandMan/Forms/OptionsWindow.ui index 698289c1..18c1cd57 100644 --- a/SandboxiePlus/SandMan/Forms/OptionsWindow.ui +++ b/SandboxiePlus/SandMan/Forms/OptionsWindow.ui @@ -3037,33 +3037,6 @@ The process match level has a higher priority than the specificity and describes - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Allow use of nested job objects (works on Windows 8 and later) - - - - - - - Force usage of custom dummy Manifest files (legacy behaviour) - - - @@ -3077,7 +3050,21 @@ The process match level has a higher priority than the specificity and describes - + + + + Allow use of nested job objects (works on Windows 8 and later) + + + + + + + Force usage of custom dummy Manifest files (legacy behaviour) + + + + Qt::Vertical @@ -3090,20 +3077,40 @@ The process match level has a higher priority than the specificity and describes - + Emulate sandboxed window station for all processes - + + + + Qt::Horizontal + + + + 40 + 20 + + + + + Disable the use of RpcMgmtSetComTimeout by default (this may resolve compatibility issues) + + + + Apply ElevateCreateProcess Workaround (legacy behaviour) + + + diff --git a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp index ab53cfad..d9c71ef4 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp @@ -38,7 +38,7 @@ void COptionsWindow::CreateAdvanced() m_AdvOptions.insert("UseWin32kHooks", SAdvOption{eSpec, QStringList() << "y" << "n", tr("Enable the use of win32 hooks for selected processes. Note: You need to enable win32k syscall hook support globally first.")}); m_AdvOptions.insert("EnableMiniDump", SAdvOption{eSpec, QStringList() << "y" << "n", tr("Enable crash dump creation in the sandbox folder")}); - m_AdvOptions.insert("ApplyElevateCreateProcessFix", SAdvOption{eSpec, QStringList() << "y" << "n", tr("Always use ElevateCreateProcess fix, as sometimes applied by the Program Compatibility Assistant.")}); + m_AdvOptions.insert("ApplyElevateCreateProcessFix", SAdvOption{eOnlySpec, QStringList() << "y" << "n", tr("Always use ElevateCreateProcess fix, as sometimes applied by the Program Compatibility Assistant.")}); m_AdvOptions.insert("PreferExternalManifest", SAdvOption{eOnlySpec, QStringList() << "y" << "n, tr("")"}); m_AdvOptions.insert("ExternalManifestHack", SAdvOption{eSpec, QStringList() << "y" << "n", tr("Enable special inconsistent PreferExternalManifest behavioure, as neede for some edge fixes")}); m_AdvOptions.insert("RpcMgmtSetComTimeout", SAdvOption{eSpec, QStringList() << "n" << "y", tr("Set RpcMgmtSetComTimeout usage for specific processes")}); @@ -109,6 +109,8 @@ void COptionsWindow::CreateAdvanced() void COptionsWindow::LoadAdvanced() { ui.chkPreferExternalManifest->setChecked(m_pBox->GetBool("PreferExternalManifest", false)); + ui.chkElevateCreateProcessFix->setChecked(m_pBox->GetBool("ApplyElevateCreateProcessFix", false)); + ui.chkNestedJobs->setChecked(m_pBox->GetBool("AllowBoxedJobs", false)); ui.chkUseSbieWndStation->setChecked(m_pBox->GetBool("UseSbieWndStation", true)); @@ -243,6 +245,8 @@ void COptionsWindow::ShowTriggersTmpl(bool bUpdate) void COptionsWindow::SaveAdvanced() { WriteAdvancedCheck(ui.chkPreferExternalManifest, "PreferExternalManifest", "y", ""); + WriteAdvancedCheck(ui.chkElevateCreateProcessFix, "ApplyElevateCreateProcessFix", "y", ""); + WriteAdvancedCheck(ui.chkUseSbieWndStation, "UseSbieWndStation", "", "n"); WriteAdvancedCheck(ui.chkAddToJob, "NoAddProcessToJob", "", "y");