Does anyone know how to get the handles of the programs which are currently visible? I know about the EnumWindows() function, but this one gives me alot of window handles, including handles to windows that aren't visible.
I guess one way to get handles to visible windows is to test wether ShowWindow(hwnd,SW_SHOW) has been called for a specific window, but I also don't know what function I could use for that purpose.

Thanks in advance