determine invalid window process

Giganews Newsgroups
Subject: determine invalid window process
Posted by:  X. Zhang (XZha…@discussions.microsoft.com)
Date: Fri, 25 Jul 2008

I encountered a strange problem. I have an VB6 Form application. Sometimes,
for some reasons, say crashing, the application stays in the memory (can be
seen in Processes list of Task Manager), but it cannot be activated, and
cannot "Switch to" using Task Manager, even though the call FindWindow DOES
return the window handle. (I call it ghost.) I'm able to kill the ghosts AND
OTHERS from other application, but I do NOT want to kill the innocent (normal
status, that is, window can be activated). So my question, how to determine
the GHOST window application like this?

Thanks in advance.

Replies