public bool HasWindow(IWindow window)
 {
     try
     {
         return(m_vds.HasWindow(m_desktop, window.Handle) || m_vds.IsWindowPinned(window.Handle));
     }
     catch (COMException e) when((uint)e.HResult == /*TYPE_E_ELEMENTNOTFOUND*/ 0x8002802B)
     {
         return(false);
     }
 }
 public bool HasWindow(object desktop, IntPtr hWnd)
 {
     return(ExecuteWithRetry(() => m_vds.HasWindow(desktop, hWnd)));
 }