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. EnumThreadWindows continues until the last window is enumerated or the callback function returns FALSE.
BOOL EnumThreadWindows(
DWORD dwThreadId,
WNDENUMPROC lpfn,
LPARAM lParam
);
Implementation
int EnumThreadWindows(int dwThreadId,
Pointer<NativeFunction<EnumWindowsProc>> lpfn, int lParam) =>
_EnumThreadWindows(dwThreadId, lpfn, lParam);