Class WindowsEnumerator
EnumWindows wrapper for .NET
Inheritance
System.Object
WindowsEnumerator
Namespace: Dapplo.Windows.Desktop
Assembly: Dapplo.Windows.dll
Syntax
public static class WindowsEnumerator : object
Methods
| Improve this Doc View SourceEnumerateWindows(IInteropWindow, Func<IInteropWindow, Boolean>, Func<IInteropWindow, Boolean>)
Enumerate the windows / child windows (this is NOT lazy)
Declaration
public static IEnumerable<IInteropWindow> EnumerateWindows(IInteropWindow parent = null, Func<IInteropWindow, bool> wherePredicate = null, Func<IInteropWindow, bool> takeWhileFunc = null)
Parameters
Type | Name | Description |
---|---|---|
IInteropWindow | parent | IInteropWindow with the hwnd of the parent, or null for all |
Func<IInteropWindow, System.Boolean> | wherePredicate | Func for the where |
Func<IInteropWindow, System.Boolean> | takeWhileFunc | Func which can decide to stop enumerating |
Returns
Type | Description |
---|---|
IEnumerable<IInteropWindow> | IEnumerable with InteropWindow |
EnumerateWindowsAsync(Nullable<IntPtr>, CancellationToken)
Enumerate the windows / child windows via an Observable
Declaration
public static IObservable<IInteropWindow> EnumerateWindowsAsync(IntPtr? hWndParent = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<IntPtr> | hWndParent | IntPtr with the hwnd of the parent, or null for all |
CancellationToken | cancellationToken | CancellationToken |
Returns
Type | Description |
---|---|
IObservable<IInteropWindow> | IObservable with WinWindowInfo |