The mystery of the blank "app preventing Windows shutdown" — Microsoft engineer explains they were never meant to be seen

Lenovo LOQ 15IAX9I
Microsoft veteran Raymond Chen recently revealed the whole concept behind the secretive window with no name blocking Windows shutdowns. (Image credit: Ben Wilson | Windows Central)

For as long as I can remember, as an avid Windows user, I've regularly encountered an unnamed window preventing me from shutting down my PC after a long day of gaming (or work). It's puzzled me for years, and based on my research, I’m clearly not the only one dealing with it on this island.

Going by the comments on Reddit posts, even from several years ago, the unnamed program preventing Windows from shutting down always seemed like an issue that puzzled users. However, Microsoft veteran Raymond Chen recently revealed the whole concept behind this secretive window with no name, blocking Windows shutdown in his ongoing "Old New Thing" series.

Lately, as I attempt to shutdown my PC, an unnamed program, sometimes accompanied by a program simply named 'G' will prevent shutdown. Clicking 'shutdown anyway' allows me to shutdown but i am never able to locate the source of the programs.

u/Ronibaboni via r/techsupport (Reddit)

According to the seasoned Microsoft engineer, when a user attempts to shut down Windows, but a program deters the process from happening, the operating system conventionally presents you with the Blocked Shutdown Resolver (BSDR) featuring a list of windows, including the one processing the shutdown notification as well as other windows waiting in line to process said notification.

As highlighted by Chen, "The program controls all the parts of the presentation. The description comes from the window title. The icon (comes) from the window icon. And the subtitle comes from the string that the program passed to the Shutdown­Block­Reason­Create function."

However, there are some instances where the program fails to call that function, prompting it to default to a generic system-provided string like “This app is preventing shutdown” or “This app is preventing you from restarting.”

The description may at times appear blank, which is a rather odd occurrence. "But why is the description sometimes blank? Who would create a window with no title?" added Chen. As it turns out, the whole concept is by design. Chen notes that programs often create windows that were never meant to be shown to the user, so developers would leave their titles blank on purpose.

He further explains that these windows are designed to serve as a dummy "helper" window, designed to receive messages or serve as an anchor for positioning another window. "Since the program knew that the window would never be shown to the user, it didn’t bother giving it a title," concluded Chen. However, the Blocked Shutdown Resolver shows the title, explaining the unnamed program preventing a shutdown. Puzzle solved. Well, at least I know why it happens now.

Kevin Okemwa
Contributor

Kevin Okemwa is a seasoned tech journalist based in Nairobi, Kenya with lots of experience covering the latest trends and developments in the industry at Windows Central. With a passion for innovation and a keen eye for detail, he has written for leading publications such as OnMSFT, MakeUseOf, and Windows Report, providing insightful analysis and breaking news on everything revolving around the Microsoft ecosystem. While AFK and not busy following the ever-emerging trends in tech, you can find him exploring the world or listening to music.

You must confirm your public display name before commenting

Please logout and then login again, you will then be prompted to enter your display name.