The IsIconic function determines whether the given window is minimized (iconic).
hwnd
Identifies the window.
The return value is nonzero if the window is minimized. Otherwise, it is zero.
CloseWindow, IsZoomed