I want my application to be able to determine if there are any applications NOT iconized ('minimized').

It currently scans windows with GetWindow(GetDesktopWindow(), GW_CHILD)
and GetWindowPlacement app_hwnd, wp

I thought the wp.showCmd member of WINDOWPLACEMENT structure
would provide the information to differentiate iconized and non iconized windows

However, I get values of 1 and 2 for all of the windows even though
all but one of them are minimized as icons on the taskbar.

I get the same wp.showCmd value for a notepad app which is not minimized.
Notepad doesn't have focus, but it is NOT minimized.

Help?
Frank Brady