Beispiel #1
0
 public void BuildAllWindowsTree()
 {
     UnmanagedMethods.EnumChildWindows(rootNode.Hwnd, new WindowEnumProc(this.OnEnumWindow), IntPtr.Zero);
 }
Beispiel #2
0
 private int OnEnumThreadWindow(IntPtr hwnd, IntPtr lParam)
 {
     AddWindow(hwnd);
     UnmanagedMethods.EnumChildWindows(hwnd, new WindowEnumProc(this.OnEnumWindow), IntPtr.Zero);
     return(1);
 }