Uncas.Core by Ole Lynge Soerensen

<PackageReference Include="Uncas.Core" Version="1.1.0.154" />

 Window

public class Window
Wraps a window in Microsoft Windows.
public static Window CurrentForeground { get; }

Gets the current foreground window.

public IntPtr Handle { get; }

Gets the handle of the window.

public string ProcessName { get; }

Gets the name of the process.

public string Title { get; }

Gets the title of the window.

public Window(IntPtr handle)

Initializes a new instance of the Window class.