From 350e0f61b72b98e635f3b03eb016404d5f7a7bcd Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Thu, 18 Nov 2021 18:13:19 +0200 Subject: [PATCH] Moved CLSID_ImmersiveShell to utility --- ExplorerPatcher/StartMenu.h | 7 +------ ExplorerPatcher/utility.h | 7 +++++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ExplorerPatcher/StartMenu.h b/ExplorerPatcher/StartMenu.h index 5825136..9008251 100644 --- a/ExplorerPatcher/StartMenu.h +++ b/ExplorerPatcher/StartMenu.h @@ -10,6 +10,7 @@ #pragma comment(lib, "Psapi.lib") #include #include +#include "utility.h" #pragma comment(lib, "ntdll.lib") EXTERN_C NTSYSAPI PIMAGE_NT_HEADERS NTAPI RtlImageNtHeader(PVOID); @@ -17,12 +18,6 @@ EXTERN_C NTSYSAPI PIMAGE_NT_HEADERS NTAPI RtlImageNtHeader(PVOID); extern DWORD bMonitorOverride; extern DWORD bOpenAtLogon; -DEFINE_GUID(CLSID_ImmersiveShell, - 0xc2f03a33, - 0x21f5, 0x47fa, 0xb4, 0xbb, - 0x15, 0x63, 0x62, 0xa2, 0xf2, 0x39 -); - DEFINE_GUID(SID_IImmersiveMonitorService, 0x47094e3a, 0x0cf2, 0x430f, 0x80, 0x6f, diff --git a/ExplorerPatcher/utility.h b/ExplorerPatcher/utility.h index 3723e48..c21faf2 100644 --- a/ExplorerPatcher/utility.h +++ b/ExplorerPatcher/utility.h @@ -30,6 +30,7 @@ #define SETUP_UTILITY_NAME "ep_setup.exe" #define DEFAULT_UPDATE_URL "https://github.com/valinet/ExplorerPatcher/releases/latest/download/" #define TOAST_BUFSIZ 1024 +#define SEH_REGPATH "Control Panel\\Quick Actions\\Control Center\\QuickActionsStateCapture\\ExplorerPatcher" #define WM_MSG_GUI_SECTION WM_USER + 1 #define WM_MSG_GUI_SECTION_GET 1 @@ -72,6 +73,12 @@ #define DWMWA_MICA_EFFFECT 1029 #endif +DEFINE_GUID(CLSID_ImmersiveShell, + 0xc2f03a33, + 0x21f5, 0x47fa, 0xb4, 0xbb, + 0x15, 0x63, 0x62, 0xa2, 0xf2, 0x39 +); + #pragma region "Weird stuff" INT64 STDMETHODCALLTYPE nimpl4_1(INT64 a1, DWORD* a2); INT64 STDMETHODCALLTYPE nimpl4_0(INT64 a1, DWORD* a2);