EnumWindowsProc

The EnumWindowsProc function is an application-defined callback function used with the EnumWindows or EnumDesktopWindows function. It receives top-level window handles. The WNDENUMPROC type defines a pointer to this callback function. EnumWindowsProc is a placeholder for the application-defined function name.

BOOL CALLBACK EnumWindowsProc(
  HWND hwnd,      // handle to parent window
  LPARAM lParam   // application-defined value
);
 

Parameters

hwnd
Handle to a top-level window.
lParam
Specifies the application-defined value given in EnumWindows or EnumDesktopWindows.

Return Values

To continue enumeration, the callback function must return TRUE; to stop enumeration, it must return FALSE.

Remarks

An application must register this callback function by passing its address to EnumWindows or EnumDesktopWindows.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Requires version 1.0 or later.
  Header: Declared in winuser.h.
  Import Library: User-defined.

See Also

Windows Overview, Window Functions, EnumWindows, EnumDesktopWindows