Shift key during Windows 95 restart triggers faster restart via EW_RESTARTWINDOWS flag, allowing a quick resume unless memory fragmentation occurs, leading to a full reboot instead. Assembly code manages memory and state requirements. Fast-restart may fail on consecutive attempts due to driver issues.
https://devblogs.microsoft.com/oldnewthing/20260119-06/?p=111995

