Re: Slightly OT: Find a window with no process ID???



"Eric Hill" <eric@xxxxxxxxx> wrote in message news:op.tlaavss8sqk0wa@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a command prompt window open on my desktop. I can move the window, minimize it, and maximize it. The last line on the screen is "exit". There is no cmd.exe process listed in the Task Manager, but the cmd.exe window is shown under Applications.

W--T--F--?

How can a window be active with no underlying process, and furthermore, since there is no process to close the window, how can I close the window without rebooting the computer???

Thanks,
Eric

Although console windows are owned by the client application, they are also maintained by csrss.exe (which you can't kill). Sounds like csrss has gone into a funny state and hasn't destroyed the window when the client app died. Maybe the client was being debugged and didn't exit cleanly....

you could try 'winspy++' from my website which can close some windows....but probably you need to log off/on or reboot.



--
James Brown
Microsoft MVP - Windows SDK
www.catch22.net
Free Win32 Tutorials and Sourcecode


.



Relevant Pages

  • Re: "exit" would not terminate program
    ... terminate, but I don't know why you'd get the message box (unless the ... compiler decided to cut it - were there any compiler warnings? ... But, an exception inside a window procedure, while may be a very serious ...
    (microsoft.public.pocketpc.developer)
  • Re: Startup Button
    ... > correct exit value of -2. ... Otherwise - why would you want to kill your mainwindow? ... The only program that I have coded in a destroy after a certain time has ... been an alert window. ...
    (comp.lang.perl.tk)
  • Re: please help out of office
    ... > CD-ROM or the Exchange 2000 Server service pack to delete the two entries ... Click OK to clear the first window that pops up. ... Click on the MDB menu option. ... Press the Close button to exit the MAPI_FOLDER window. ...
    (microsoft.public.exchange2000.general)
  • Re: please help out of office
    ... > CD-ROM or the Exchange 2000 Server service pack to delete the two entries ... Click OK to clear the first window that pops up. ... Click on the MDB menu option. ... Press the Close button to exit the MAPI_FOLDER window. ...
    (microsoft.public.exchange2000.general)
  • Re: Zsh + GUI
    ... define where in the window the buttons appear and maybe other things ... "Exit button" will exit the script. ... people require from a GUI (things like buttons, entry fields, text ... I've also developed a Tcl/Tk screen layout system (GRIDPLUS ...
    (comp.unix.shell)