Split Win32 main window session state
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user