Beispiel #1
0
        /// <summary>
        /// Enumerates the windows on a desktop.
        /// </summary>
        /// <param name="windows">Array of Desktop.Window objects to recieve windows.</param>
        /// <returns>A window colleciton if successful, otherwise null.</returns>
        public static WindowCollection GetWindows(string desktop)
        {
            if (!SEBDesktopController.Exists(desktop))
            {
                return(null);
            }

            // get windows.
            SEBDesktopController d = SEBDesktopController.OpenDesktop(desktop);

            return(d.GetWindows());
        }