BOOL EnumThreadWindows(
DWORD dwThreadId, // thread identifier
WNDENUMPROC lpfn, // pointer to callback function
LPARAM lParam // application-defined value
);
Parameters
dwThreadId
Identifies the thread whose windows are to be enumerated.
lpfn
Pointer to an application-defined callback function. For more information, see EnumThreadWndProc.
lParam
Specifies an application-defined value to be passed to the callback function.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, callGetLastError.