EnumThreadWindows function user32
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;