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. EnumWindows continues until the last top-level window is enumerated or the callback function returns FALSE


callback : object

A Python function to be used as the callback.

extra : object

Any python object - this is passed to the callback function as the second param (first is the hwnd).