EnumDesktopWindows function user32

int EnumDesktopWindows(
  1. int hDesktop,
  2. Pointer<NativeFunction<EnumWindowsProc>> lpfn,
  3. int lParam
)

Enumerates all top-level windows associated with the specified desktop. It passes the handle to each window, in turn, to an application-defined callback function.

BOOL EnumDesktopWindows(
  HDESK       hDesktop,
  WNDENUMPROC lpfn,
  LPARAM      lParam
);

Implementation

int EnumDesktopWindows(int hDesktop,
        Pointer<NativeFunction<EnumWindowsProc>> lpfn, int lParam) =>
    _EnumDesktopWindows(hDesktop, lpfn, lParam);