public static List <HwndObject> GetWindows() { List <HwndObject> list = new List <HwndObject>(); foreach (IntPtr ptr in HwndInterface.EnumHwnds()) { list.Add(new HwndObject(ptr)); } return(list); }
/// <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); }
/// <summary> /// Retrieves all top-level Hwnd Objects. /// </summary> /// <returns></returns> public static List <HwndObject> GetWindows() { return(GetWindows(HwndInterface.EnumHwnds())); }