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