The IsWindow function determines whether the specified window handle identifies an existing window.
BOOL IsWindow(
HWND hWnd |
// handle of window |
); |
If the window handle identifies an existing window, the return value is nonzero.
If the window handle does not identify an existing window, the return value is zero.