/// <summary> /// Pre-Initialization for CaptureWithFeedback, this will get all the windows before we change anything /// </summary> private Thread PrepareForCaptureWithFeedback() { _windows = new List <WindowDetails>(); // If the App Launcher is visisble, no other windows are active WindowDetails appLauncherWindow = WindowDetails.GetAppLauncher(); if (appLauncherWindow != null && appLauncherWindow.Visible) { _windows.Add(appLauncherWindow); return(null); } Thread getWindowDetailsThread = new Thread(RetrieveWindowDetails) { Name = "Retrieve window details", IsBackground = true }; getWindowDetailsThread.Start(); return(getWindowDetailsThread); }