EnumWindows

[DllImport("user32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool EnumWindows(
   EnumWindowsProc lpEnumFunc,
   IntPtr lParam
);

Microsoft documentation: Link

Last updated