News: 1768910892

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Microsoft veteran explains the one weird trick that made Windows 95 restart faster

(2026/01/20)


Microsoft's Raymond Chen has explained why holding down Shift during a Windows 95 restart would get the system up and running again far faster than a full reboot.

Some old hands will nod sagely over the "Shift during Restart" trick, while others will wish they'd known about it three decades ago, given how often Windows 95 needed coaxing back to life.

Chen [1]explained that the EW_RESTART­WINDOWS flag was passed to the old 16-bit ExitWindows function. The 16-bit Windows kernel shut down, then the 32-bit virtual memory manager shut down, before the CPU finally dropped back into real mode, and handed control to win.com .

[2]

For the uninitiated, real mode is how x86-compatible CPUs start – it's a legacy mode with direct hardware access that's now just a stepping stone to protected mode, which modern operating systems use. When win.com (running in real mode) received control, the CPU would signal it to start protected-mode Windows.

[3]

[4]

Chen noted that .com files are implicitly given all the remaining conventional memory upon launch. The memory can be released back to the system for other programs.

"In win.com 's case," said Chen, "it releases all the memory beyond its own image back to the system so that there is a single large contiguous block of memory for loading protected-mode Windows.

[5]How Microsoft gave customers what they wanted: An audience with Bill Gates

[6]Windows keeps obsolete strings forever to avoid breaking translations

[7]To solve compatibility issues, Microsoft would quietly patch other people's code

[8]The CAPITAL LETTERS trick that helped merge Windows 95 into NT

"If somebody had allocated memory in the space that win.com had given up for protected-mode Windows, then conventional memory will be fragmented, and the 'try to get the system back into the same state that it was in back when win.com had been freshly launched' is not successful because the expected memory layout was 'one giant contiguous block of memory.'

"In that case, win.com says, 'Sorry, I can't do what you asked' and falls back to a full reboot."

[9]

Cue some thumb twiddling while the PC reboots.

Otherwise, win.com launched protected-mode Windows, and before long, the familiar user interface appeared on the user's screen.

It's a neat bit of engineering that enabled fast restarts, even if it could be undone by some naughty bit of code (say, from a device driver) grabbing that memory. And there was none of the "Hey, I've got an update that will probably break something" that bedevils modern Windows users. ®

Get our [10]Tech Resources



[1] https://devblogs.microsoft.com/oldnewthing/20260119-06/?p=111995

[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2aW-0wRS2mA8mNB1FVvAKNgAAAoQ&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44aW-0wRS2mA8mNB1FVvAKNgAAAoQ&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33aW-0wRS2mA8mNB1FVvAKNgAAAoQ&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[5] https://www.theregister.com/2026/01/01/microsofts_approach_to_customer_service/

[6] https://www.theregister.com/2025/11/28/chen_windows_text_translation/

[7] https://www.theregister.com/2025/11/13/microsoft_windows_compatibility_chen/

[8] https://www.theregister.com/2025/10/29/chen_windows_95_sizeof/

[9] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44aW-0wRS2mA8mNB1FVvAKNgAAAoQ&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[10] https://whitepapers.theregister.com/



MiguelC

So..... what did pressing the Shift key actually do to speed restarting Win95?

Dan 55

I guess it avoided POST and starting MS-DOS if win.com realised all the memory Windows needed was available in one contiguous block.

But if you're just exiting Windows and starting it again, why wouldn't it be? All the memory Windows used should have just been released.

thosrtanner

1. It causes windows to restart itself rather than restarting the computer (so no power up self test)

2. It causes windows NOT to run things in the startup folder.

MyffyW

That (avoid launching startup folder items), was also in Window 3.1x (if my own memory serves me well).

Was useful when somebody decided to have each of the Lotus SmartSuite apps launch on start. Fecking users....

Tagline of the time...

Yorick Hunt

"Get a Pentium so you can re-boot faster."

Re: Tagline of the time...

Anonymous Coward

I had an application that used to crash multiple times a day. Startup time was non-negligable so causing multiple outages a day. The vendor solved it by reducing the application start time.

(Microsoft were not involved in the application or operating system)

Re: Tagline of the time...

TeeCee

That actually made no difference at all, but the Pentium insisted it was 0.017694532018795643971124509863425 seconds faster.

Luke Worm

Nice to know there was a use for the Shift key.

Normally, when something said "Press any key to continue", pressing the Shift key did nothing.

balrog

Of course pressing shift doesnt work. The instruction is clear, press the any key.

MyffyW

Or "Strike any user to continue" as we used to say

Thereneverwasaplot

Not heard that one before, I like it!

The Oncoming Scorn

Or "Strike any user to continue" as Simon used to say

FTFY.

I wonder if I could ever get started in the credit world?