EnumDesktopWindows
[DllImport("user32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool EnumDesktopWindows(
IntPtr hDesktop,
EnumWindowsProc lpfn,
IntPtr lParam
);
Microsoft documentation: Link
Last updated