EnumThreadWindows function user32

bool EnumThreadWindows(
  1. int dwThreadId,
  2. Pointer<NativeFunction<WNDENUMPROC>> lpfn,
  3. LPARAM lParam
)

Enumerates all nonchild windows associated with a thread by passing the handle to each window, in turn, to an application-defined callback function.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-enumthreadwindows.

Implementation

@pragma('vm:prefer-inline')
bool EnumThreadWindows(
  int dwThreadId,
  Pointer<NativeFunction<WNDENUMPROC>> lpfn,
  LPARAM lParam,
) => _EnumThreadWindows(dwThreadId, lpfn, lParam) != FALSE;