July 29th, 2025
like1 reaction

Why is there a window with no name blocking Windows shutdown?

If you try to shut down Windows, and there’s a program that is not allowing the shutdown to proceed, then the Blocked Shutdown Resolver (BSDR) shows a list of windows that includes the one that is processing the shutdown notification, as well as the windows who are waiting for their turn to process the shutdown notification. For each window, the information looks like this:

🎼 Contoso Composer ← Window title
Burning a CD ← passed to Shutdown­Block­Reason­Create
Window icon

The program controls all the parts of the presentation. The description comes from the window title. The icon come from the window icon. And the subtitle comes from the string that the program passed to the Shutdown­Block­Reason­Create function.

If the program did not call Shutdown­Block­Reason­Create, then a generic system-provided string is used like “This app is preventing shutdown” or “This app is preventing you from restarting.”

But why is the description sometimes blank? Who would create a window with no title?

Programs often create windows that they never intend to show to the user. It might be a helper window that exists to receive messages or to act 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.

Except that the Blocked Shutdown Resolver shows the title.

And if the title is empty, you get a blank string.

So, programmers, give your windows useful titles, even the ones you never thought would be shown to the user.

Topics
Code

Author

Raymond has been involved in the evolution of Windows for more than 30 years. In 2003, he began a Web site known as The Old New Thing which has grown in popularity far beyond his wildest imagination, a development which still gives him the heebie-jeebies. The Web site spawned a book, coincidentally also titled The Old New Thing (Addison Wesley 2007). He occasionally appears on the Windows Dev Docs Twitter account to tell stories which convey no useful information.

0 comments