Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Make 'close window' button kill the process?

06 Oct 2010   #1

Windows 7 Home x64
Make 'close window' button kill the process?

One of the forever most annoying things about Windows, is that if a program stalls and you want to kill it, clicking the 'x' button for closing the window, actually does nothing.

Is there a way to make this button forcibly kill the process, without having the wait ages for the "This program appears to have stopped working" prompt? (or just make it immediately open up that prompt, if the program doesn't kill itself within a couple of seconds?)

My System SpecsSystem Spec
06 Oct 2010   #2

Windows 10 Pro (x64)

Tried clicking it multiple times?
My System SpecsSystem Spec
06 Jul 2011   #3

x86_64 GNU/Linux


need this for when pretty much everything is being retarded on me and decides it _HAS_ to keep running for several hours or computer will explode.
My System SpecsSystem Spec

06 Jul 2011   #4

Windows 10 Pro/ Windows 10 Pro Insider

Alt+control+delete select task manager select the process select stop porcess.
My System SpecsSystem Spec
07 Jul 2011   #5

x86_64 GNU/Linux

thanks for the helpful post

My System SpecsSystem Spec
07 Jul 2011   #6

Windows 7 Ultimate x64/Windows 8 Consumer Preview x64/Ubuntu 11.04

I'm sorry echideret, but you won't got any helpful answers with that attitude. And I'm afraid that is the only way you can kill the process. Although a quicker way of opening task manager is by pressing Ctrl+Shift+Esc. Ot you can right click the taskbar and go from there.

EDIT: By the way, try not to bump old threads. If you have a problem, make a new post. Of course, it's too late now but keep that in mind for future reference.
My System SpecsSystem Spec
07 Jul 2011   #7

Windows 7 Ultimate (x64)

As far as I understand the window is a part of the process. If the process hangs or otherwise becomes unresponsive, then the window buttons stop working as well. Sometimes you can still move the window around and sometimes you can't. Sometimes clicking on any button will just make the window shaded (sort of) and either you wait until the problem resolves itself (if the problem is with memory or a plugin) or you kill the process. Sometimes clicking on the "close" button produces that prompt that the OP is talking about.

So, my understanding is that it is basically impossible to do what the OP wants, since for this the window and the app should be separate processes. In which case the only way to kill the process would be to use the Task Manager.
My System SpecsSystem Spec
07 Jul 2011   #8

Operating System : Windows 7 Home Premium Edition 6.01.7600 SP1 (x64)

hi all can i add when you kill the process choose end process tree :)
My System SpecsSystem Spec
07 Jul 2011   #9

Windows 10 Pro (x64)

As long as you have Windows Aero, if you repeatedly click on the closed button of an application Windows will prompt you if you want to forceably close (aka. Kill the process) the application, wait for it to respond, look for a solution in Microsoft's database. I know it works on most applications since the Window frame is managed by dwm.exe. Applcations with full custom UIs may not work completely in this regard.
My System SpecsSystem Spec

 Make 'close window' button kill the process?

Thread Tools

Similar help and support threads
Thread Forum
Can i move the X window close button to the bottom of the window?
Hi, This may sound stupid but i need to relocate the window close and resize buttons to the lower part of the window instead of the top so i can move the window to the upper part all the way up and it doesnt bounce back. Is it possible? Thank you.
open explorer, starts new process, close it, process remains active
Hi, I've got a quicklaunch shortcut to: %windir%\explorer.exe shell:::{323CA680-C24D-4099-B94D-446DD2D7249E} That takes me straight to my explorer favourites. What I notice is that when I launch that, I get a new explorer.exe thread appear in the task manager. When I close it though, that...
General Discussion
Kill process with cmd
What would be the command to kill a process like explorer.exe or wininit.exe through cmd?
Performance & Maintenance
Make Close Window Button Larger
Hey everyone! I was playing around with some other themes but didn't really like any of them so I'm back with the default(ish) theme. The only problem is that when the program I was using tried to reset the theme back to default, it made the button to close the window the same size as the...
Can't close window with X button
New here, looking forward to reading through some of the threads here and learning more about Windows 7. I've been running RC1 since it became available, and recently I've added 2 other user accounts on my main PC. These 2 accounts seem to have the same problem: neither of them allow you to...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:51.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App