Example #1
0
        public static List <HwndObject> GetWindows()
        {
            List <HwndObject> list = new List <HwndObject>();

            foreach (IntPtr ptr in HwndInterface.EnumHwnds())
            {
                list.Add(new HwndObject(ptr));
            }
            return(list);
        }
Example #2
0
        /// <summary>
        /// Retrieves all top-level Hwnd Objects.
        /// </summary>
        /// <returns></returns>
        public static List <HwndObject> GetWindows()
        {
            var result = new List <HwndObject>();

            foreach (var hwnd in HwndInterface.EnumHwnds())
            {
                result.Add(new HwndObject(hwnd));
            }
            return(result);
        }
Example #3
0
 /// <summary>
 /// Retrieves all top-level Hwnd Objects.
 /// </summary>
 /// <returns></returns>
 public static List <HwndObject> GetWindows()
 {
     return(GetWindows(HwndInterface.EnumHwnds()));
 }