Skip to content

Commit

Permalink
Support Windows XP start menu SysFader
Browse files Browse the repository at this point in the history
  • Loading branch information
aubymori committed Nov 10, 2024
1 parent b3e9e65 commit 5538f09
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ClassicShutdown/ClassicShutdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 5538f09

Please sign in to comment.