Split Win32 main window session state

This commit is contained in:
2026-06-17 11:17:02 +02:00
parent 81a998436d
commit 949dbf778a
11 changed files with 92 additions and 53 deletions

View File

@@ -1,6 +1,7 @@
#include "pch.h"
#include "platform_windows/windows_bootstrap_helpers.h"
#include "platform_windows/windows_main_window_session.h"
#include "platform_windows/windows_runtime_shell.h"
#include "platform_windows/windows_window_shell.h"
@@ -176,7 +177,7 @@ void setup_exception_handler(const App& app)
GetFullPathNameA(path.c_str(), MAX_PATH, abspath, NULL);
static char message[4096];
snprintf(message, sizeof(message), "File recovered in: %s", abspath);
MessageBoxA(main_window_handle(), message, "File Recovery", MB_OK | MB_ICONWARNING);
MessageBoxA(retained_main_window_handle_ref(), message, "File Recovery", MB_OK | MB_ICONWARNING);
}
LogRemote::I.file_close();
}, reinterpret_cast<INT_PTR>(&app));
@@ -338,7 +339,7 @@ int read_WMI_info()
if (get_int(clsObj, L"CodeIntegrityPolicyEnforcementStatus") > 0)
{
LOG("SANDBOX DETECTED");
set_main_window_sandboxed(true);
set_retained_main_window_sandboxed(true);
}
SAFEARRAY *psaNames = NULL;