win32gui.EnumWindows
EnumWindows(callback, extra)
Enumerates all top-level windows on the screen by passing the handle to each window, in turn, to an application-defined callback function.
Parameters
EnumWindows(callback, extra)
Enumerates all top-level windows on the screen by passing the handle to each window, in turn, to an application-defined callback function.