public static bool GetWindowHandleInfo() { WindowsDic.Clear(); if (!WindowsAPI.EnumDesktopWindows(IntPtr.Zero, FilterCallback, IntPtr.Zero)) { return(false); } else { return(true); } }