EnumThreadWndProc

The EnumThreadWndProc function is an application-defined callback function used with the EnumThreadWindows function. It receives the window handles associated with a thread. The WNDENUMPROC type defines a pointer to this callback function. EnumThreadProc is a placeholder for the application-defined function name.

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

Parameters

hwnd
Handle to a window associated with the thread specified in the EnumThreadWindows function.
lParam
Specifies the application-defined value given in the EnumThreadWindows function.

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 the EnumThreadWindows function.

QuickInfo

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

See Also

Windows Overview, Window Functions, EnumThreadWindows