IsWindowValid
From SCAR Divi Manual
function IsWindowValid(const Wnd: Hwnd): Boolean;
SCAR Divi 3.35 > Current
Returns true if a window given as reference handle Wnd is valid.
begin WriteLn(IsWindowValid(GetDesktopWnd)); WriteLn(IsWindowValid(0)); end.
Output:
1 0