win32gui.IsWindow

IsWindow(hWnd)

determines whether the specified window handle identifies an existing window.

Parameters

hWnd : int

handle to window