BOOL EnumThreadWindows(dwThreadId, lpfn, lParam) | |||
DWORD dwThreadId; | |||
WNDENUMPROC lpfn; | |||
LPARAM lParam; |
The EnumThreadWindows function enumerates all windows associated with a thread. It enumerates the windows by passing the window handles, one by one, to the callback function pointed to by lpfn.
EnumThreadWindows continues until the last window is enumerated or the callback function pointed to by lpfn returns FALSE.
dwThreadId
Identifies the thread whose windows are to be enumerated.
lpfn
Points to a callback function that EnumThreadWindows will pass window handles and lParam to. For more information, see the description of the EnumThreadWndProc callback function.
lParam
Specifies an application-defined value that the system passes to the callback function along with each window handle.
If all windows associated with the specified thread are enumerated, this function returns TRUE.
If all windows associated with the specified thread are not enumerated, this function returns FALSE.
EnumChildWindows, EnumWindows