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);