EnumWindows function Null safety user32
- Pointer<
NativeFunction< lpEnumFunc,EnumWindowsProc> > - int lParam
Enumerates all top-level windows on the screen by passing the handle to each window, in turn, to an application-defined callback function. EnumWindows continues until the last top-level window is enumerated or the callback function returns FALSE.
BOOL EnumWindows(
WNDENUMPROC lpEnumFunc,
LPARAM lParam
);
Implementation
int EnumWindows(
Pointer<NativeFunction<EnumWindowsProc>> lpEnumFunc, int lParam) {
final _EnumWindows = _user32.lookupFunction<
Int32 Function(
Pointer<NativeFunction<EnumWindowsProc>> lpEnumFunc, IntPtr lParam),
int Function(Pointer<NativeFunction<EnumWindowsProc>> lpEnumFunc,
int lParam)>('EnumWindows');
return _EnumWindows(lpEnumFunc, lParam);
}