From 5538f09e672dfd4711c7d26c3b5780d84f213ee0 Mon Sep 17 00:00:00 2001 From: aubymori Date: Sat, 9 Nov 2024 19:43:46 -0600 Subject: [PATCH] Support Windows XP start menu SysFader --- ClassicShutdown/ClassicShutdown.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ClassicShutdown/ClassicShutdown.cpp b/ClassicShutdown/ClassicShutdown.cpp index 633f4dd..657a316 100644 --- a/ClassicShutdown/ClassicShutdown.cpp +++ b/ClassicShutdown/ClassicShutdown.cpp @@ -157,6 +157,15 @@ int WINAPI wWinMain( Sleep(100); ShowWindow(hFader, SW_HIDE); } + /* Windows XP Explorer creates one as well, but the + delay doesn't need to be simulated */ + else if (hFader = FindWindowW(L"SysFader", NULL)) + { + /* The SysFader runs a loop that locks up the message + loop, so we just make it completely transparent instead + of really hiding it. */ + SetLayeredWindowAttributes(hFader, NULL, 0, LWA_ALPHA); + } /* Check if hibernation is available */ SYSTEM_POWER_CAPABILITIES spc = { 0 };