Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EnumThreadWndProc callback function

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. EnumThreadWndProc is a placeholder for the application-defined function name.

Syntax


BOOL CALLBACK EnumThreadWndProc(
  _In_ HWND   hwnd,
  _In_ LPARAM lParam
);

Parameters

hwnd [in]

A handle to a window associated with the thread specified in the EnumThreadWindows function.

lParam [in]

The application-defined value given in the EnumThreadWindows function.

Return value

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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Reference
EnumThreadWindows
Conceptual
Windows

 

 

Show:
© 2017 Microsoft