The EnumThreadWndProc function is an application-defined callback function that receives the window handles associated with a thread as a result of a call to the EnumThreadWindows function.
BOOL CALLBACK EnumThreadWndProc(
HWND hwnd, |
// handle to window |
LPARAM lParam |
// application-defined value |
); |
To continue enumeration, the callback function must return TRUE; to stop enumeration, it must return FALSE.
The callback function can perform any desired task.
An application must register this callback function by passing its address to the EnumThreadWindows function. EnumThreadWndProc is a placeholder for the application-defined function name.