check if a window is still alive

Hi,

I'm trying to check if a window is still alive (not destroyed or closed), but as pointed out here:
http://stackoverflow.com/questions/2344233/validate-hwnd-using-win32-api
I can't trust IsWindow() in this case, because HWNDs can be reused by the system.
I can still get the HINSTANCE, process and thread ids and associated exe name that belongs to the given HWND.
So is any of these a reliable way to check if a window is still alive?
Never done it, but I think the combination of HWND, PID and TID is good enough.
yeah maybe, but is there another option or should I gather as much identifiers as I can?
I don't personally know. Like I said, I've never done it, so I am unsure if there is A definite proper way.
well thanks, I think I'll stick to checking as many identifiers as I can and hope for the best :)
I suppose IsWindowVisible() would not be a help either?
Topic archived. No new replies allowed.