Search code examples
c++windowswindowhwnd

How can I determent if a window still exists with a HWND


Possible Duplicate:
Validate HWND using Win32 API

How can I determent if the window of a HWND still exists? I have a HWND of a window. The window exists in another process. I want to know if the Window is still “alive”. What is the best way to do this?


Solution

  • MSDN IsWindow function is doing exactly this:

    Determines whether the specified window handle identifies an existing window.