Example #1
0
 /// <summary>
 /// Gets all top level windows on the system.
 /// </summary>
 public void GetWindows()
 {
     this.items = new EnumWindowsCollection();
     UnManagedMethods.EnumWindows(
         new EnumWindowsProc(this.WindowEnum),
         0);
 }
Example #2
0
 /// <summary>
 /// Gets all child windows of the specified window
 /// </summary>
 /// <param name="hWndParent">Window Handle to get children for</param>
 public void GetWindows(
     IntPtr hWndParent)
 {
     this.items = new EnumWindowsCollection();
     UnManagedMethods.EnumChildWindows(
         hWndParent,
         new EnumWindowsProc(this.WindowEnum),
         0);
 }